Searched defs:test (Results 101 - 125 of 135) sorted by relevance

123456

/libcore/ojluni/src/test/java/time/test/java/time/format/
H A DTestNumberParser.java60 package test.java.time.format;
H A DTestReducedPrinter.java60 package test.java.time.format;
75 import test.java.time.temporal.MockFieldValue;
H A DTestReducedParser.java60 package test.java.time.format;
495 // Class to structure the test data
H A DTestTextParser.java60 package test.java.time.format;
H A DTestZoneOffsetParser.java60 package test.java.time.format;
H A DTestDateTimeFormatterBuilder.java60 package test.java.time.format;
899 String test = f.format(temporal);
900 assertEquals(test, expected);
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
H A DTestChronoUnit.java57 package test.java.time.temporal;
H A DTestDateTimeValueRange.java60 package test.java.time.temporal;
74 import test.java.time.AbstractTest;
94 ValueRange test = ValueRange.of(1, 12);
95 assertEquals(test.getMinimum(), 1);
96 assertEquals(test.getLargestMinimum(), 1);
97 assertEquals(test.getSmallestMaximum(), 12);
98 assertEquals(test.getMaximum(), 12);
99 assertEquals(test.isFixed(), true);
100 assertEquals(test.isIntValue(), true);
104 ValueRange test
[all...]
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/
H A DSerializationTest.java49 * There are two modes of test run: <b>reference generation mode </b> and
51 * <b>&quot;test.mode&quot; </b> system property. The <b>testing mode </b> is
53 * To turn on the <b>reference generation mode </b>, the test.mode property
70 "src/test/resources/serialization");
123 * Working method for files generation mode. Serializes test objects
171 * Should be implemented if a class under test does not provide specific
256 * - if <code>test</code> implements SerializableAssert interface then it is
265 * @param test - test case
269 public static SerializableAssert defineComparator(Object test, Objec argument
303 verifyGolden(Object test, Object object) argument
319 verifyGolden(Object test, Object object, SerializableAssert comparator) argument
336 verifyGolden(Object test, Object[] objects) argument
356 verifyGolden(Object test, Object[] objects, SerializableAssert comparator) argument
423 getObject(Object test, String toAppend) argument
447 createGoldenFile(String root, TestCase test, Object object) argument
[all...]
/libcore/support/src/test/java/tests/resources/
H A Djunit4-4.3.1.jar ... 0_r4/s?defs= " (junit.framework.Test, int) junit.framework.Test test int repeat public ...
/libcore/
H A DJavaLibrary.mk33 # test/ # Built only on demand, for testing.
43 define all-test-java-files-under
44 $(foreach dir,$(1),$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && (find $(dir)/src/test/java -name "*.java" 2> /dev/null) | grep -v -f java_tests_blacklist)))
55 test_resource_dirs := $(filter-out ojluni/%,$(call all-core-resource-dirs,test))
56 test_src_files := $(call all-test-java-files-under,dalvik dalvik/test-rules dom harmony-tests json luni xml)
57 ojtest_src_files := $(call all-test-java-files-under,ojluni)
58 ojtest_resource_dirs := $(filter ojluni/%,$(call all-core-resource-dirs,test))
174 # Build libcore test rules for target
176 LOCAL_SRC_FILES := $(call all-java-files-under, dalvik/test
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DProxyTest.java143 assertTrue("Failed identity test ", proxy.equals(proxy));
144 assertTrue("Failed not equals test ", !proxy.equals(""));
146 assertEquals("Failed primitive type conversion test ", -200, result[0]);
267 Method m = c.getMethod("test", (Class<?>[]) null);
312 public void test() throws Exception { method in class:ProxyTest.MyImplWithParentAndSubInThrowList
330 public void test() throws IOException, Exception; method in interface:TestParentIntf
/libcore/luni/src/test/java/libcore/xml/
H A DXsltXPathConformanceTestSuite.java68 * XSLT conformance test suite</a>, adapted for use by JUnit. To run these tests
71 * <li>Obtain the <a href="http://www.oasis-open.org/committees/download.php/12171/XSLT-testsuite-04.ZIP">test
76 * <li>Invoke this class' main method, passing the on-device path to the test
130 System.out.println(" catalog-xml: an XML file describing an OASIS test suite");
144 * Returns a JUnit test suite for the tests described by the given document.
152 * <test-suite>
153 * <test-catalog submitter="Lotus">
157 * <test-case ...> ... </test-case>
158 * <test
301 public void test() { method in class:XsltXPathConformanceTestSuite.MisspecifiedTest
349 public void test() throws Exception { method in class:XsltXPathConformanceTestSuite.XsltTest
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/
H A DTestOffsetDateTime.java60 package test.java.time;
126 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PTWO);
127 assertSame(test.toLocalDateTime(), base.toLocalDateTime());
128 assertSame(test.getOffset(), OFFSET_PTWO);
134 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PONE);
135 assertSame(test, base);
141 OffsetDateTime test = base.withOffsetSameInstant(OFFSET_PONE);
142 assertSame(test, base);
148 OffsetDateTime test = base.withYear(2008);
149 assertSame(test, bas
[all...]
H A DTestZoneId.java60 package test.java.time;
99 // cannot use standard test as ZoneId is abstract
116 ZoneId test = ZoneOffset.UTC;
117 assertEquals(test.getId(), "Z");
118 assertEquals(test.getDisplayName(TextStyle.FULL, Locale.UK), "Z");
119 assertEquals(test.getRules().isFixedOffset(), true);
120 assertEquals(test.getRules().getOffset(Instant.ofEpochSecond(0L)), ZoneOffset.UTC);
121 checkOffset(test.getRules(), createLDT(2008, 6, 30), ZoneOffset.UTC, 1);
128 ZoneId test = ZoneId.systemDefault();
129 assertEquals(test
[all...]
H A DTestLocalDateTime.java60 package test.java.time;
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DProxyTest.java417 default Object test() { method in interface:ProxyTest.DefaultMethod
433 assertEquals(invocationHandlerReturnValue, dm.test());
/libcore/ojluni/src/lambda/java/java/lang/invoke/
H A DMethodHandles.java142 MethodHandle guardWithTest(MethodHandle test, argument
/libcore/luni/src/main/native/
H A Dcbigint.cpp431 uint32_t test; local
461 test = (LOW_U32_FROM_PTR (arg) << (11 - highBit)) & 0x7FF;
462 if (test > 0x400 || ((test == 0x400) && (mantissa & 1)))
510 test = (LOW_U32_FROM_PTR (arg + length) << (11 - highBit)) & 0x7FF;
511 if (test > 0x400 || ((test == 0x400) && (mantissa & 1)))
513 else if (test == 0x400)
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKMonthDay.java109 // since multiple test methods were run and the first one did not require this value.
144 void check(MonthDay test, int m, int d) { argument
145 assertEquals(test.getMonth().getValue(), m);
146 assertEquals(test.getDayOfMonth(), d);
155 MonthDay test = MonthDay.now();
157 if (expected.equals(test)) {
161 test = MonthDay.now();
163 assertEquals(test, expected);
178 MonthDay test = MonthDay.now(zone);
180 if (expected.equals(test)) {
[all...]
H A DTCKOffsetTime.java128 import test.java.time.MockSimplePeriod;
143 // since multiple test methods were run and the first one did not require this value.
212 OffsetTime test = OffsetTime.now();
213 long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay());
215 assertEquals(test.getOffset(), nowDT.getOffset());
226 OffsetTime test = OffsetTime.now(clock);
227 assertEquals(test.getHour(), (i / (60 * 60)) % 24);
228 assertEquals(test.getMinute(), (i / 60) % 60);
229 assertEquals(test.getSecond(), i % 60);
230 assertEquals(test
277 check(OffsetTime test, int h, int m, int s, int n, ZoneOffset offset) argument
711 test_adjustInto(OffsetTime test, Temporal temporal, Temporal expected, Class<?> expectedEx) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DObjectOutputStreamTest.java538 String test = "test"; field in class:ObjectOutputStreamTest.ObjectOutputStreamWriteOverride
547 test = null;
619 // byte, so we test > <before>
855 assertTrue("Used to test", true);
940 assertNull(mockOut.test);
1024 * is called before a test is executed.
1033 * method is called after a test is executed.
1306 // Regression test for HARMONY-6483
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldClassTest.java113 public static String TEST_FIELD = "test field";
191 void test(); method in interface:OldClassTest.Intf1
196 void test(); method in interface:OldClassTest.Intf2
214 public void test() { method in class:OldClassTest.Cls1
221 public void test() { method in class:OldClassTest.Cls2
226 public void test() { method in class:OldClassTest.Cls3
339 // Remove this comment to let the test pass on Android.
464 // Different behavior between cts host and run-core-test")
739 assertEquals("Returned incorrect field", "test field",
837 if(method.toString().equals("public void libcore.java.lang.OldClassTest$Cls2.test()")) {
[all...]
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DMethodHandles.java2758 * by guarding it with a test, a boolean-valued method handle.
2762 * of the test must be boolean, and the test is allowed
2766 * boolean test(A...);
2770 * if (test(a...))
2776 * Note that the test arguments ({@code a...} in the pseudocode) cannot
2777 * be modified by execution of the test, and so are passed unchanged
2779 * @param test method handle used for test, must return boolean
2780 * @param target method handle to call if test passe
2789 guardWithTest(MethodHandle test, MethodHandle target, MethodHandle fallback) argument
[all...]
H A DTransformers.java203 private final MethodHandle test; field in class:Transformers.GuardWithTest
209 public GuardWithTest(MethodHandle test, MethodHandle target, MethodHandle fallback) { argument
212 this.test = test;
216 // The test method might have a subset of the arguments of the handle / target.
217 testArgsRange = EmulatedStackFrame.Range.of(target.type(), 0, test.type().parameterCount());
222 EmulatedStackFrame testFrame = EmulatedStackFrame.create(test.type());
225 // We know that the return value for test is going to be boolean.class, so we don't have
227 final boolean value = (boolean) test.invoke(testFrame);

Completed in 475 milliseconds

123456