Home
last modified time | relevance | path

Searched refs:TestCase (Results 1 – 25 of 1244) sorted by relevance

12345678910>>...50

/libcore/ojluni/src/test/java/util/Collection/testlibrary/
DCollectionSupplier.java48 …lier<C extends Collection<Integer>> implements Supplier<Iterable<CollectionSupplier.TestCase<C>>> {
56 public static final class TestCase<C extends Collection<Integer>> { class in CollectionSupplier
83 public TestCase(String name, Function<Collection<Integer>, C> supplier, C collection) { in TestCase() method in CollectionSupplier.TestCase
130 public Iterable<TestCase<C>> get() { in get()
131 final Collection<TestCase<C>> cases = new LinkedList<>(); in get()
134 … cases.add(new TestCase<>("empty", supplier, supplier.apply(Collections.emptyList()))); in get()
136 cases.add(new TestCase<>("single", supplier, supplier.apply(Arrays.asList(42)))); in get()
142 cases.add(new TestCase<>("regular", supplier, supplier.apply(regular))); in get()
148 cases.add(new TestCase<>("reverse", supplier, supplier.apply(reverse))); in get()
154 cases.add(new TestCase<>("odds", supplier, supplier.apply(odds))); in get()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DGenericReflectionTestsBase.java22 import junit.framework.TestCase;
24 public class GenericReflectionTestsBase extends TestCase{
58 TestCase.assertEquals("Array does NOT contain exactly one element.", 1, array.length); in assertLenghtOne()
62 TestCase.assertEquals("Array has more than zero elements.", 0, array.length); in assertLenghtZero()
66TestCase.assertTrue(actual.getClass().getName() + " is not instance of :" + expectedClass.getName(… in assertInstanceOf()
71TestCase.assertFalse(actual.toString() + " has not to be equal to " + expected.toString(), expecte… in assertNotEquals()
/libcore/luni/src/test/java/libcore/java/lang/
DAssertionErrorTest.java19 import junit.framework.TestCase;
21 public final class AssertionErrorTest extends TestCase {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassFormatErrorTest.java19 import junit.framework.TestCase;
21 public class ClassFormatErrorTest extends TestCase {
DClassCircularityErrorTest.java19 import junit.framework.TestCase;
21 public class ClassCircularityErrorTest extends TestCase {
DUnsupportedClassVersionErrorTest.java19 import junit.framework.TestCase;
21 public class UnsupportedClassVersionErrorTest extends TestCase {
/libcore/luni/src/test/java/libcore/libcore/util/
DSneakyThrowTest.java19 import junit.framework.TestCase;
26 public class SneakyThrowTest extends TestCase {
/libcore/luni/src/test/java/libcore/java/text/
DOldFormatFieldTest.java21 import junit.framework.TestCase;
23 public class OldFormatFieldTest extends TestCase {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesNameTest.java22 import junit.framework.TestCase;
24 public class AttributesNameTest extends TestCase {
/libcore/luni/src/test/java/tests/security/acl/
DAclNotFoundExceptionTest.java25 import junit.framework.TestCase;
33 public class AclNotFoundExceptionTest extends TestCase {
DLastOwnerException2Test.java20 import junit.framework.TestCase;
24 public class LastOwnerException2Test extends TestCase {
DLastOwnerExceptionTest.java25 import junit.framework.TestCase;
33 public class LastOwnerExceptionTest extends TestCase {
DNotOwnerException2Test.java20 import junit.framework.TestCase;
24 public class NotOwnerException2Test extends TestCase {
DNotOwnerExceptionTest.java25 import junit.framework.TestCase;
33 public class NotOwnerExceptionTest extends TestCase {
DAclNotFoundException2Test.java20 import junit.framework.TestCase;
24 public class AclNotFoundException2Test extends TestCase {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInterruptedIOExceptionTest.java22 import junit.framework.TestCase;
24 public class InterruptedIOExceptionTest extends TestCase {
DObjectStreamConstantsTest.java21 import junit.framework.TestCase;
23 public class ObjectStreamConstantsTest extends TestCase {
/libcore/luni/src/test/java/libcore/sun/security/pkcs/
DPKCS9AttributeTest.java19 import junit.framework.TestCase;
24 public class PKCS9AttributeTest extends TestCase {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormattableFlagsTest.java19 import junit.framework.TestCase;
21 public class FormattableFlagsTest extends TestCase {
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldSimpleFormatterTest.java21 import junit.framework.TestCase;
23 public class OldSimpleFormatterTest extends TestCase {
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherDESedeWrapTest.java18 import junit.framework.TestCase;
20 public class CipherDESedeWrapTest extends TestCase {
DSecretKeyFactoryFunctionalTest.java18 import junit.framework.TestCase;
20 public class SecretKeyFactoryFunctionalTest extends TestCase {
DKeyAgreementFunctionalTest.java18 import junit.framework.TestCase;
20 public class KeyAgreementFunctionalTest extends TestCase {
DKeyGeneratorFunctionalTest.java18 import junit.framework.TestCase;
20 public class KeyGeneratorFunctionalTest extends TestCase {
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipExceptionTest.java19 import junit.framework.TestCase;
23 public class OldZipExceptionTest extends TestCase {

12345678910>>...50