Searched refs:test (Results 126 - 150 of 6293) sorted by relevance

1234567891011>>

/openjdk9/jdk/test/java/text/Format/NumberFormat/
H A DBug4838107.java25 * @test
47 * This bug is about exponential formatting. But I added test cases for:
51 * because there are few test cases for suffix and prefix.
52 * And also, I added test cases to guarantee further formatting and
74 test(1234D, "1,234");
75 test(0.1234, "0.123"); // rounded
76 test(-1234D, "-1,234");
77 test(-0.1234, "-0.123"); // rounded
79 test(Double.POSITIVE_INFINITY, "\u221e");
80 test(Doubl
200 static void test(Number num, String str) { method in class:Bug4838107
[all...]
/openjdk9/nashorn/test/script/basic/
H A Djavaarrayconversion.js27 * test.
29 * @test
44 function test(inputValue, type, expectedValue) { function
57 test(x, "int", 0) // Correct? TypeError maybe?
58 test(null, "int", 0) // Correct? TypeError maybe?
59 test(1234, "int", 1234)
60 test("1234", "int", 1234)
61 test("1234.49", "int", 1234)
62 test("1234.51", "int", 1234) // truncates, not rounds
63 test(tru
[all...]
H A DJDK-8019963.js27 * @test
33 print(re1.test("\x00"));
34 print(re1.test("\x04"));
35 print(re1.test("\x08"));
36 print(re1.test("\x0a"));
37 print(re1.test("\x0B"));
38 print(re1.test("\x0C"));
39 print(re1.test("\x0E"));
40 print(re1.test("\x10"));
41 print(re1.test("\x1
[all...]
/openjdk9/jdk/test/java/util/ResourceBundle/modules/appbasic/src/test/
H A Dmodule-info.java24 module test {
25 exports jdk.test.resources.spi to eubundles, asiabundles;
26 uses jdk.test.resources.spi.MyResourcesProvider;
27 provides jdk.test.resources.spi.MyResourcesProvider with jdk.test.resources.MyResourcesProviderImpl;
/openjdk9/jdk/test/java/util/ResourceBundle/modules/appbasic2/src/test/
H A Dmodule-info.java24 module test {
25 exports jdk.test.resources.spi to eubundles, asiabundles;
26 uses jdk.test.resources.spi.MyResourcesProvider;
27 provides jdk.test.resources.spi.MyResourcesProvider with jdk.test.resources.MyResourcesProviderImpl;
/openjdk9/jdk/test/java/util/Formatter/
H A DBasicLong.java24 /* Type-specific source code for unit test
27 * We check in the generated source files so that the test tree can be used
47 private static void test(String fs, String exp, Object ... args) { method in class:BasicLong
57 private static void test(Locale l, String fs, String exp, Object ... args) method in class:BasicLong
68 private static void test(String fs, Object ... args) { method in class:BasicLong
74 private static void test(String fs) { method in class:BasicLong
118 test(fs);
132 test(fs, args);
338 public static void test() { method in class:BasicLong
354 test(Local
[all...]
H A DBasicInt.java24 /* Type-specific source code for unit test
27 * We check in the generated source files so that the test tree can be used
47 private static void test(String fs, String exp, Object ... args) { method in class:BasicInt
57 private static void test(Locale l, String fs, String exp, Object ... args) method in class:BasicInt
68 private static void test(String fs, Object ... args) { method in class:BasicInt
74 private static void test(String fs) { method in class:BasicInt
118 test(fs);
132 test(fs, args);
338 public static void test() { method in class:BasicInt
354 test(Local
[all...]
/openjdk9/langtools/test/tools/javac/unit/util/convert/
H A DEnclosingCandidates.java25 * @test
42 void test(String name, String... expected) { method in class:EnclosingCandidates
57 EnclosingCandidates test = new EnclosingCandidates();
58 test.test("");
59 test.test("foo");
60 test.test("foo$bar", "foo");
61 test
[all...]
/openjdk9/jdk/test/java/lang/Class/
H A DIsEnum.java25 * @test
35 static int test(Class<?> clazz, boolean expected) { method in class:IsEnum
47 failures += test(IsEnum.class, false);
48 failures += test(String.class, false);
49 failures += test(Enum.class, false);
50 failures += test(EnumPoseur.class, false);
51 failures += test(java.math.RoundingMode.class, true);
54 failures += test(Annotation.class, false);
55 failures += test(ElementType.class, true);
56 failures += test(Retentio
[all...]
H A DIsAnnotationType.java25 * @test
37 static int test(Class clazz, boolean expected) { method in class:IsAnnotationType
49 failures += test(String.class, false);
50 failures += test(Enum.class, false);
51 failures += test(java.math.RoundingMode.class, false);
53 failures += test(Annotation.class, false);
54 failures += test(Retention.class, true);
55 failures += test(RetentionPolicy.class, false);
56 failures += test(Target.class, true);
57 failures += test(AnnotationPoseu
[all...]
/openjdk9/jdk/test/java/lang/String/
H A DToLowerCase.java25 @test
43 test("\u03A3", Locale.US, "\u03C3");
44 test("LAST\u03A3", Locale.US, "last\u03C2");
45 test("MID\u03A3DLE", Locale.US, "mid\u03C3dle");
46 test("WORD1 \u03A3 WORD3", Locale.US, "word1 \u03C3 word3");
47 test("WORD1 LAST\u03A3 WORD3", Locale.US, "word1 last\u03C2 word3");
48 test("WORD1 MID\u03A3DLE WORD3", Locale.US, "word1 mid\u03C3dle word3");
49 test("\u0399\u0395\u03a3\u03a5\u03a3 \u03a7\u03a1\u0399\u03a3\u03a4\u039f\u03a3", Locale.US,
53 test("I", lt, "i");
54 test("
163 static void test(String in, Locale locale, String expected) { method in class:ToLowerCase
[all...]
/openjdk9/jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/
H A DJWhileLoop.java38 private JExpression test; field in class:JWhileLoop
48 JWhileLoop(JExpression test) { argument
49 this.test = test;
52 public JExpression test() { method in class:JWhileLoop
53 return test;
62 if (JOp.hasTopOp(test)) {
63 f.p("while ").g(test);
65 f.p("while (").g(test).p(')');
/openjdk9/jdk/test/java/awt/Window/WindowType/
H A DWindowType.java25 @test
36 import test.java.awt.regtesthelpers.Util;
43 private static void test(Window window, Window.Type type) { method in class:WindowType
51 private static void test(Window.Type type) { method in class:WindowType
52 test(new Window((Frame)null), type);
53 test(new Frame(), type);
54 test(new Dialog((Frame)null), type);
58 test(Window.Type.NORMAL);
59 test(Window.Type.UTILITY);
60 test(Windo
[all...]
/openjdk9/jdk/test/javax/swing/border/
H A DTest6625450.java25 * @test
37 // test height
38 test(false, 0, Integer.MAX_VALUE);
39 test(false, 0, 1);
40 test(true, 0, -1);
41 test(true, 0, Integer.MIN_VALUE);
42 // test width
43 test(false, Integer.MAX_VALUE, 0);
44 test(false, 1, 0);
45 test(tru
53 private static void test(boolean expected, int width, int height) { method in class:Test6625450
[all...]
/openjdk9/langtools/test/tools/javac/classfiles/attributes/SourceFile/
H A DMixTest.java25 * @test
26 * @summary sourcefile attribute test for complex structure of nested classes and other types.
57 test("MixTest", fileName);
58 test("MixTest$1", fileName);
59 test("MixTest$InnerClass", fileName);
60 test("MixTest$1$innerInAnonymous", fileName);
61 test("MixTest$1$1Local", fileName);
62 test("MixTest$InnerClass$innerEnum", fileName);
63 test("MixTest$InnerClass$innerInterface", fileName);
64 test("MixTes
[all...]
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements.test/src/org/graalvm/compiler/replacements/test/
H A DInstanceOfDynamicTest.java23 package org.graalvm.compiler.replacements.test;
27 import org.graalvm.compiler.core.test.GraalCompilerTest;
42 test("isStringDynamic", nul);
43 test("isStringDynamic", "object");
44 test("isStringDynamic", Object.class);
50 test("isStringIntDynamic", nul);
51 test("isStringIntDynamic", "object");
52 test("isStringIntDynamic", Object.class);
57 test("isInstanceDynamic", String.class, null);
58 test("isInstanceDynami
[all...]
/openjdk9/jdk/test/java/beans/PropertyEditor/
H A DTestColorClassValue.java25 * @test
39 TestEditor test = new TestEditor(Color.class);
40 test.testValue(Color.GREEN, "0,255,0");
41 test.testValue(null, null);
42 test.testText("0,0,0", Color.BLACK);
43 test.testText(null, null);
H A DTestDoubleTypeValue.java25 * @test
36 TestEditor test = new TestEditor(Double.TYPE);
37 test.testValue(0.0, "0.0");
38 test.testValue(null, null);
39 test.testText("1.1", 1.1);
40 test.testText(null, null);
H A DTestFloatClassValue.java25 * @test
36 TestEditor test = new TestEditor(Float.class);
37 test.testValue(0.0f, "0.0");
38 test.testValue(null, null);
39 test.testText("1.1", 1.1f);
40 test.testText(null, null);
H A DTestFloatTypeValue.java25 * @test
36 TestEditor test = new TestEditor(Float.TYPE);
37 test.testValue(0.0f, "0.0");
38 test.testValue(null, null);
39 test.testText("1.1", 1.1f);
40 test.testText(null, null);
H A DTestFontClassValue.java25 * @test
39 TestEditor test = new TestEditor(Font.class);
40 test.testValue(new Font("Helvetica", Font.BOLD | Font.ITALIC, 20), "Helvetica BOLDITALIC 20");
41 test.testValue(null, null);
42 test.testText("Helvetica 12", new Font("Helvetica", Font.PLAIN, 12));
43 test.testText(null, null);
H A DTestLongTypeValue.java25 * @test
36 TestEditor test = new TestEditor(Long.TYPE);
37 test.testValue(0l, "0");
38 test.testValue(null, null);
39 test.testText("1", 1l);
40 test.testText(null, null);
H A DTestShortTypeValue.java25 * @test
36 TestEditor test = new TestEditor(Short.TYPE);
37 test.testValue((short) 0, "0");
38 test.testValue(null, null);
39 test.testText("1", (short) 1);
40 test.testText(null, null);
H A DTestBooleanTypeValue.java25 * @test
36 TestEditor test = new TestEditor(Boolean.TYPE);
37 test.testValue(true, "True");
38 test.testValue(null, null);
39 test.testText("False", false);
40 test.testText(null, null);
H A DTestByteTypeValue.java25 * @test
36 TestEditor test = new TestEditor(Byte.TYPE);
37 test.testValue((byte) 0, "0");
38 test.testValue(null, null);
39 test.testText("1", (byte) 1);
40 test.testText(null, null);

Completed in 318 milliseconds

1234567891011>>