Searched defs:expected (Results 1 - 25 of 221) sorted by relevance

123456789

/openjdk7/langtools/test/tools/javac/4917091/
H A DTest256a.java33 static Object expected = (Object)new Object field in class:Test256a
H A DTest256b.java36 static Object expected = (Object)new Object field in class:Test256b
/openjdk7/jdk/test/java/io/PushbackInputStream/
H A DAvailable.java36 private static void dotest(PushbackInputStream in , int expected) argument
41 System.err.println("available must be " + expected + " , got : " + got);
42 if (got != expected) {
H A DSkip.java33 private static void dotest(PushbackInputStream in, int expected) argument
56 System.err.println("Expected " + expected + " got " + got);
57 if (expected != got) {
58 throw new Exception("Expected " + expected + " got " + got);
/openjdk7/jdk/test/java/beans/XMLEncoder/6380849/
H A DTestPersistenceDelegate.java51 private static void test(Class<?> type, Class<? extends PersistenceDelegate> expected) { argument
53 if ((actual == null) && (expected != null)) {
54 throw new Error("expected delegate is not found");
56 if ((actual != null) && !actual.getClass().equals(expected)) {
/openjdk7/jdk/test/java/lang/Class/
H A DIsAnnotationType.java37 static int test(Class clazz, boolean expected) { argument
38 int status = (clazz.isAnnotation() == expected)?0:1;
/openjdk7/jdk/test/java/lang/Integer/
H A DParsingTest.java77 private static void check(String val, int expected) { argument
79 if (n != expected)
/openjdk7/jdk/test/java/lang/Long/
H A DParsingTest.java77 private static void check(String val, long expected) { argument
79 if (n != expected)
/openjdk7/jdk/test/java/lang/Math/
H A DRint.java36 static int testRintCase(double input, double expected) { argument
39 failures += Tests.test("Math.rint", input, Math.rint(input), expected);
40 failures += Tests.test("Math.rint", -input, Math.rint(-input), -expected);
42 input, StrictMath.rint(input), expected);
44 StrictMath.rint(-input), -expected);
/openjdk7/jdk/test/java/lang/StrictMath/
H A DCubeRootTests.java45 static int testCubeRootCase(double input, double expected) { argument
49 double minus_expected = -expected;
52 StrictMath.cbrt(input), expected);
H A DExpm1Tests.java45 static int testExpm1Case(double input, double expected) { argument
47 StrictMath.expm1(input), expected);
H A DLog10Tests.java46 static int testLog10Case(double input, double expected) { argument
48 StrictMath.log10(input), expected);
H A DLog1pTests.java45 static int testLog1pCase(double input, double expected) { argument
47 StrictMath.log1p(input), expected);
/openjdk7/jdk/test/java/lang/String/
H A DToLowerCase.java108 static void test(String in, Locale locale, String expected) { argument
110 if (!result.equals(expected)) {
112 ", expected: " + expected + ", actual: " + result);
H A DToUpperCase.java96 static void test(String in, Locale locale, String expected) { argument
98 if (!result.equals(expected)) {
100 ", expected: " + expected + ", actual: " + result);
/openjdk7/jdk/test/java/lang/reflect/Modifier/
H A DtoStringTest.java34 static void testString(int test, String expected) { argument
35 if(!Modifier.toString(test).equals(expected))
/openjdk7/jdk/test/java/math/BigDecimal/
H A DEqualsTests.java69 boolean expected = Boolean.TRUE;
71 failures += equalsTest(testValuePair[0], testValuePair[1], expected);
72 expected = !expected;
81 private static int equalsTest(BigDecimal l, BigDecimal r, boolean expected) { argument
83 int failed = (result == expected) ? 0 : 1;
87 "\n\tExpected " + expected);
H A DPrecisionTests.java70 // The array below contains the expected precision of the above numbers
82 private static int testPrecision(BigDecimal bd, int expected) { argument
85 // System.out.printf("Testing %s, expected %d%n", bd, expected);
87 if (precision != expected) {
88 System.err.printf("For (%s).precision expected %d, got %d%n",
89 bd, expected, precision);
/openjdk7/jdk/test/java/nio/charset/RemovingSunIO/
H A DTestUnmappableForLength.java43 static void testDecode(String csName, byte[] ba, int expected) argument
51 if (cr.isUnmappable() && cr.length() != expected) {
/openjdk7/jdk/test/sun/security/x509/X509CRLImpl/
H A DOrderAndDup.java75 static void checkData(X509CRLImpl c, byte[] data, BigInteger[] expected) argument
77 if (c.getRevokedCertificates().size() != expected.length) {
86 if (d2.length != expected.length) {
92 if (!bi.equals(expected[i])) {
94 + ", should be " + expected[i]);
/openjdk7/jdk/test/java/util/ResourceBundle/
H A DBug4396021.java44 private static void checkValue(String key, String expected) throws Exception { argument
46 if (!result.equals(expected)) {
48 + " - key: " + key + ", expected: " + expected
/openjdk7/jdk/test/java/util/StringTokenizer/
H A DSupplementary.java38 String[] expected =
40 testTokenizer(text, delims, expected);
43 expected = new String[] { "ab\uD800\uDC00\uD800\uDC01cd\uD800\uDC00\uD800xy",
47 testTokenizer(text, delims, expected);
50 expected = new String[] { "ab\uD800\uDC00\uD800\uDC01cd\uD800\uDC00",
52 testTokenizer(text, delims, expected);
55 static void testTokenizer(String text, String delims, String[] expected) { argument
58 if (n != expected.length) {
60 + ", expected " + expected
[all...]
/openjdk7/jdk/test/sun/net/www/
H A DMessageHeaderTest.java42 if (!expected[i].equals(after)) {
43 throw new RuntimeException(Integer.toString(i) + " expected != after");
51 static String expected[] = { field in class:MessageHeaderTest
/openjdk7/langtools/test/tools/javac/generics/6413682/
H A DTestPos.java52 static final String expected = field in class:TestPos
118 if (!log.toString().equals(expected))
/openjdk7/langtools/test/tools/javac/unit/util/convert/
H A DEnclosingCandidates.java41 void test(String name, String... expected) { argument
43 if (!result.isEmpty() || expected.length != 0) {
44 Name[] expectedNames = new Name[expected.length];
46 for (String s : expected)

Completed in 160 milliseconds

123456789