Searched defs:expected (Results 26 - 50 of 221) sorted by relevance

123456789

/openjdk7/hotspot/test/compiler/5091921/
H A DTest6559156.java52 void doTest1(int expected, int max, int i) { argument
55 (counted <= max) && (counted < expected);
58 if (counted != expected) {
62 " expected=" + expected);
66 void doTest2(int expected, int max, int i) { argument
70 (counted < expected) && (counted <= max);
73 if (counted != expected) {
77 " expected=" + expected);
[all...]
H A DTest6992759.java52 void doTest(int expected, int max, int i) { argument
55 (counted <= max) && (counted < expected);
58 if (counted != expected) {
62 " expected=" + expected);
/openjdk7/jdk/test/com/sun/jdi/
H A DConnectedVMs.java66 void vms(int expected) { argument
69 if (vms.size() != expected) {
71 " - expected: " + expected +
/openjdk7/jdk/test/java/awt/font/NumericShaper/
H A DEasternArabicTest.java71 String expected = testData[i][1];
72 test(data, expected);
74 cExpected.append(expected).append(' ');
83 private static void test(String data, String expected) { argument
88 if (!expected.equals(got)) {
93 System.err.println(" expected = " + expected);
98 System.err.println(" expected = " + expected);
105 if (!expected
[all...]
/openjdk7/jdk/test/java/beans/Introspector/6380849/
H A DTestBeanInfo.java57 private static void test(Class<?> type, Class<? extends BeanInfo> expected) { argument
69 if ((actual == null) && (expected != null)) {
70 throw new Error("expected info is not found");
72 if ((actual != null) && !actual.getClass().equals(expected)) {
/openjdk7/jdk/test/java/io/ByteArrayInputStream/
H A DSkip.java34 long toskip, long expected)
41 expected);
54 if (skipped != expected) {
33 dotest(InputStream in, int curpos, long total, long toskip, long expected) argument
/openjdk7/jdk/test/java/io/InputStream/
H A DSkip.java36 long total , long toskip , long expected)
46 expected);
52 if ((skipped < 0) || (skipped > expected)) {
35 dotest(InputStream in , int curpos , long total , long toskip , long expected) argument
/openjdk7/jdk/test/java/io/LineNumberInputStream/
H A DSkip.java36 long total , long toskip , long expected)
46 expected);
52 if ((skipped < 0) || (skipped > expected)) {
35 dotest(LineNumberInputStream in , int curpos , long total , long toskip , long expected) argument
/openjdk7/jdk/test/java/io/readBytes/
H A DReadBytesBounds.java84 static void testRead(int off, int len, boolean expected) throws Throwable { argument
85 System.err.printf("off=%d len=%d expected=%b%n", off, len, expected);
95 if (result != expected) {
97 (String.format("Unexpected result off=%d len=%d expected=%b",
98 off, len, expected));
/openjdk7/jdk/test/java/lang/Byte/
H A DDecode.java48 private static void check(String val, byte expected) { argument
50 if (n != expected)
/openjdk7/jdk/test/java/lang/Class/
H A DIsEnum.java35 static int test(Class clazz, boolean expected) { argument
36 int status = (clazz.isEnum() == expected)?0:1;
H A DIsSynthetic.java38 static int test(Class<?> clazz, boolean expected) { argument
39 if (clazz.isSynthetic() == expected)
43 clazz.getName() + " expected: " + expected +
44 " got: " + (!expected));
/openjdk7/jdk/test/java/lang/Integer/
H A DDecode.java47 private static void check(String val, int expected) { argument
49 if (n != expected)
99 throw new RuntimeException("Integer.decode(null) expected to throw NPE");
/openjdk7/jdk/test/java/lang/Long/
H A DDecode.java49 private static void check(String val, long expected) { argument
51 if (n != expected)
103 throw new RuntimeException("Long.decode(null) expected to throw NPE");
/openjdk7/jdk/test/java/lang/Math/
H A DAtan2Tests.java34 static int testAtan2Case(double input1, double input2, double expected) { argument
37 StrictMath.atan2(input1, input2), expected);
39 Math.atan2(input1, input2), expected);
H A DCeilAndFloorTests.java34 private static int testCeilCase(double input, double expected) { argument
36 failures += Tests.test("Math.ceil", input, Math.ceil(input), expected);
37 failures += Tests.test("StrictMath.ceil", input, StrictMath.ceil(input), expected);
41 private static int testFloorCase(double input, double expected) { argument
43 failures += Tests.test("Math.floor", input, Math.floor(input), expected);
44 failures += Tests.test("StrictMath.floor", input, StrictMath.floor(input), expected);
H A DCubeRootTests.java43 static int testCubeRootCase(double input, double expected) { argument
47 double minus_expected = -expected;
50 Math.cbrt(input), expected);
54 StrictMath.cbrt(input), expected);
H A DRoundTests.java62 private static int testNearHalfCases(double input, double expected) { argument
65 failures += Tests.test("Math.round", input, Math.round(input), expected);
66 failures += Tests.test("StrictMath.round", input, StrictMath.round(input), expected);
90 private static int testNearHalfCases(float input, float expected) { argument
93 failures += Tests.test("Math.round", input, Math.round(input), expected);
94 failures += Tests.test("StrictMath.round", input, StrictMath.round(input), expected);
H A DTanTests.java34 static int testTanCase(double input, double expected, double ulps) { argument
37 StrictMath.tan(input), expected, ulps);
39 Math.tan(input), expected, ulps);
/openjdk7/jdk/test/java/lang/Short/
H A DDecode.java48 private static void check(String ashort, short expected) { argument
50 if (sh != expected)
/openjdk7/jdk/test/java/lang/StrictMath/
H A DHypotTests.java45 static int testHypotCase(double input1, double input2, double expected) { argument
47 StrictMath.hypot(input1, input2), expected);
H A DTests.java37 double expected) {
38 if (Double.compare(expected, result ) != 0) {
41 "\texpected " + expected + "\t(" + Double.toHexString(expected) + ")\n" +
50 double result, double expected) {
51 if (Double.compare(expected, result ) != 0) {
55 "\texpected " + expected + "\t(" + Double.toHexString(expected) + ")\n" +
34 test(String testName, double input, double result, double expected) argument
49 test(String testName, double input1, double input2, double result, double expected) argument
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DUtils.java35 // wait for the thread to transition to the expected state
44 public static boolean waitForThreadState(Thread t, Thread.State expected) { argument
45 // wait for the thread to transition to the expected state
47 while (t.getState() != expected && retryCount < MAX_RETRY) {
51 return (t.getState() == expected);
54 public static void checkThreadState(Thread t, Thread.State expected) { argument
55 waitForThreadState(t, expected);
59 throw new RuntimeException(t.getName() + " expected to have " +
60 expected + " but got null.");
62 if (state != expected) {
[all...]
/openjdk7/jdk/test/java/math/BigDecimal/
H A DCompareToTests.java39 // First operand, second operand, expected compareTo result
69 int expected = testCase[2].intValue();
71 failures += compareToTest(a, b, expected);
74 failures += compareToTest(a_negate, b_negate, -expected);
81 private static int compareToTest(BigDecimal a, BigDecimal b, int expected) { argument
83 int failed = (result==expected) ? 0 : 1;
86 "\n\tExpected " + expected);
/openjdk7/jdk/test/java/math/BigInteger/
H A DCompareToTests.java39 // First operand, second operand, expected compareTo result
69 int expected = testCase[2].intValue();
71 failures += compareToTest(a, b, expected);
74 failures += compareToTest(a_negate, b_negate, -expected);
81 private static int compareToTest(BigDecimal a, BigDecimal b, int expected) { argument
83 int failed = (result==expected) ? 0 : 1;
86 "\n\tExpected " + expected);

Completed in 124 milliseconds

123456789