blob: 0382f407fdcd367ea57f1fa0ef6f0abe93636c6d [file] [log] [blame]
/*
* Copyright 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.emultest.java.util;
import com.google.gwt.junit.client.GWTTestCase;
import java.util.List;
/**
* TODO: document me.
*/
public class EmulTestBase extends GWTTestCase {
public static void assertEquals(Object[] x, Object[] y) {
assertEquals(x.length, y.length);
for (int i = 0; i < y.length; i++) {
assertEquals(x[i], y[i]);
}
}
/**
* Easy way to test what should be in a list.
*/
protected static void assertEquals(Object[] array, List target) {
assertEquals(array.length, target.size());
for (int i = 0; i < array.length; i++) {
assertEquals(target.get(i), array[i]);
}
}
public String getModuleName() {
return "com.google.gwt.emultest.EmulSuite";
}
}