Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
rename all the TCK related test classes to be suffixed with TCK
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardWarburton committed Nov 5, 2012
1 parent d52d362 commit 6eb5ccb
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 27 deletions.
2 changes: 2 additions & 0 deletions build.xml
Expand Up @@ -251,6 +251,7 @@
<jvmarg value="-Duser.language=en" />
<jvmarg value="-Duser.country=UK" />
<classfileset dir="${core.test.classes}" includes="**/Test*.class" excludes="java/util/*" />
<classfileset dir="${core.test.classes}" includes="**/TCK*.class" excludes="java/util/*" />
</testng>
</target>

Expand All @@ -261,6 +262,7 @@
<jvmarg value="-Duser.language=en" />
<jvmarg value="-Duser.country=UK" />
<classfileset dir="${standard.test.classes}" includes="**/Test*.class" excludes="java/util/*" />
<classfileset dir="${standard.test.classes}" includes="**/TCK*.class" excludes="java/util/*" />
</testng>
</target>

Expand Down
34 changes: 17 additions & 17 deletions src-standard/test/java/javax/time/AllTest.java
Expand Up @@ -37,7 +37,7 @@
import javax.time.calendrical.TestDateTimeBuilder;
import javax.time.calendrical.TestDateTimeBuilderCombinations;
import javax.time.calendrical.TestDateTimeValueRange;
import javax.time.calendrical.TestJulianDayField;
import javax.time.calendrical.TCKJulianDayField;
import javax.time.calendrical.TestLocalPeriodUnit;
import javax.time.calendrical.TestMonthDay;
import javax.time.calendrical.TestYear;
Expand All @@ -52,11 +52,11 @@
import javax.time.format.TestCharLiteralPrinter;
import javax.time.format.TestDateTimeFormatSymbols;
import javax.time.format.TestDateTimeFormatter;
import javax.time.format.TestDateTimeFormatterBuilder;
import javax.time.format.TCKDateTimeFormatterBuilder;
import javax.time.format.TestDateTimeFormatters;
import javax.time.format.TestDateTimeParseContext;
import javax.time.format.TCKDateTimeParseContext;
import javax.time.format.TestDateTimePrintException;
import javax.time.format.TestDateTimeTextPrinting;
import javax.time.format.TCKDateTimeTextPrinting;
import javax.time.format.TestFractionPrinterParser;
import javax.time.format.TestNumberParser;
import javax.time.format.TestNumberPrinter;
Expand All @@ -65,7 +65,7 @@
import javax.time.format.TestReducedParser;
import javax.time.format.TestReducedPrinter;
import javax.time.format.TestSettingsParser;
import javax.time.format.TestSimpleDateTimeTextProvider;
import javax.time.format.TCKSimpleDateTimeTextProvider;
import javax.time.format.TestStringLiteralParser;
import javax.time.format.TestStringLiteralPrinter;
import javax.time.format.TestTextParser;
Expand All @@ -76,10 +76,10 @@
import javax.time.zone.TestFixedZoneRules;
import javax.time.zone.TestStandardZoneRules;
import javax.time.zone.TestTZDBZoneRulesCompiler;
import javax.time.zone.TestZoneOffsetTransition;
import javax.time.zone.TestZoneOffsetTransitionRule;
import javax.time.zone.TCKZoneOffsetTransition;
import javax.time.zone.TCKZoneOffsetTransitionRule;
import javax.time.zone.TestZoneResolvers;
import javax.time.zone.TestZoneRulesBuilder;
import javax.time.zone.TCKZoneRulesBuilder;
import javax.time.zone.TestZoneRulesProvider;

import org.testng.ITestResult;
Expand All @@ -101,7 +101,7 @@ static TestNG getTestSuite() {
TestNG testng = new TestNG();
testng.setTestClasses(new Class[] {
// main classes
TestClock.class,
TCKClock.class,
TestClock_Fixed.class,
TestClock_Offset.class,
TestClock_SystemImplementation.class,
Expand Down Expand Up @@ -132,16 +132,16 @@ static TestNG getTestSuite() {
TestDateTimeBuilder.class,
TestDateTimeBuilderCombinations.class,
TestDateTimeValueRange.class,
TestJulianDayField.class,
TCKJulianDayField.class,
TestLocalPeriodUnit.class,
// format
TestDateTimePrintException.class,
TestDateTimeFormatSymbols.class,
TestDateTimeFormatter.class,
TestDateTimeFormatterBuilder.class,
TCKDateTimeFormatterBuilder.class,
TestDateTimeFormatters.class,
TestDateTimeParseContext.class,
TestDateTimeTextPrinting.class,
TCKDateTimeParseContext.class,
TCKDateTimeTextPrinting.class,
// format internal
TestCharLiteralParser.class,
TestCharLiteralPrinter.class,
Expand All @@ -153,7 +153,7 @@ static TestNG getTestSuite() {
TestReducedParser.class,
TestReducedPrinter.class,
TestSettingsParser.class,
TestSimpleDateTimeTextProvider.class,
TCKSimpleDateTimeTextProvider.class,
TestStringLiteralParser.class,
TestStringLiteralPrinter.class,
TestTextParser.class,
Expand All @@ -165,10 +165,10 @@ static TestNG getTestSuite() {
TestFixedZoneRules.class,
TestStandardZoneRules.class,
TestTZDBZoneRulesCompiler.class,
TestZoneOffsetTransition.class,
TestZoneOffsetTransitionRule.class,
TCKZoneOffsetTransition.class,
TCKZoneOffsetTransitionRule.class,
TestZoneResolvers.class,
TestZoneRulesBuilder.class,
TCKZoneRulesBuilder.class,
TestZoneRulesProvider.class,
// chronology
TestChronology.class,
Expand Down
Expand Up @@ -39,7 +39,7 @@
* Test Clock.
*/
@Test
public class TestClock {
public class TCKClock {

static class MockInstantClock extends Clock {
final long millis;
Expand Down
Expand Up @@ -48,7 +48,7 @@
* Test system clock.
*/
@Test(groups="tck")
public class TestClock_System {
public class TCKClock_System {

private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow");
private static final ZoneId PARIS = ZoneId.of("Europe/Paris");
Expand Down
Expand Up @@ -43,7 +43,7 @@
* Test.
*/
@Test
public class TestJulianDayField {
public class TCKJulianDayField {

private static final LocalDate JAN01_1970 = LocalDate.of(1970, 1, 1);
private static final LocalDate DEC31_1969 = LocalDate.of(1969, 12, 31);
Expand Down
Expand Up @@ -52,7 +52,7 @@
* Test DateTimeFormatterBuilder.
*/
@Test
public class TestDateTimeFormatterBuilder {
public class TCKDateTimeFormatterBuilder {

private DateTimeFormatterBuilder builder;

Expand Down
Expand Up @@ -52,7 +52,7 @@
* Test DateTimeParseContext.
*/
@Test
public class TestDateTimeParseContext {
public class TCKDateTimeParseContext {

private DateTimeFormatSymbols symbols;
private DateTimeParseContext context;
Expand Down
Expand Up @@ -52,7 +52,7 @@
* Test text printing.
*/
@Test
public class TestDateTimeTextPrinting {
public class TCKDateTimeTextPrinting {

private DateTimeFormatterBuilder builder;

Expand Down
Expand Up @@ -48,7 +48,7 @@
* Test SimpleDateTimeTextProvider.
*/
@Test
public class TestSimpleDateTimeTextProvider {
public class TCKSimpleDateTimeTextProvider {

Locale enUS = new Locale("en", "US");
Locale ptBR = new Locale("pt", "BR");
Expand Down
Expand Up @@ -51,7 +51,7 @@
* Test ZoneOffsetTransition.
*/
@Test
public class TestZoneOffsetTransition {
public class TCKZoneOffsetTransition {

private static final ZoneOffset OFFSET_0100 = ZoneOffset.ofHours(1);
private static final ZoneOffset OFFSET_0200 = ZoneOffset.ofHours(2);
Expand Down
Expand Up @@ -51,7 +51,7 @@
* Test ZoneOffsetTransitionRule.
*/
@Test
public class TestZoneOffsetTransitionRule {
public class TCKZoneOffsetTransitionRule {

private static final LocalTime TIME_0100 = LocalTime.of(1, 0);
private static final ZoneOffset OFFSET_0200 = ZoneOffset.ofHours(2);
Expand Down
Expand Up @@ -62,7 +62,7 @@
* Test ZoneRulesBuilder.
*/
@Test
public class TestZoneRulesBuilder {
public class TCKZoneRulesBuilder {

private static final ZoneOffset OFFSET_1 = ZoneOffset.ofHours(1);
private static final ZoneOffset OFFSET_2 = ZoneOffset.ofHours(2);
Expand Down

0 comments on commit 6eb5ccb

Please sign in to comment.