mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-07 18:48:39 +00:00
Normalize test method names
This commit is contained in:
parent
0838225321
commit
972b3f218e
@ -29,7 +29,7 @@
|
||||
public class GmtTimeZoneTest extends AbstractLangTest {
|
||||
|
||||
@Test
|
||||
public void getID() {
|
||||
public void testGetID() {
|
||||
assertEquals("GMT+00:00", new GmtTimeZone(false, 0, 0).getID());
|
||||
assertEquals("GMT+01:02", new GmtTimeZone(false, 1, 2).getID());
|
||||
assertEquals("GMT+11:22", new GmtTimeZone(false, 11, 22).getID());
|
||||
@ -38,51 +38,47 @@ public void getID() {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getOffset() {
|
||||
public void testGetOffset() {
|
||||
assertEquals(0, new GmtTimeZone(false, 0, 0).getOffset(234304));
|
||||
assertEquals(-(6 * 60 + 30) * 60 * 1000,
|
||||
new GmtTimeZone(true, 6, 30).getOffset(1, 1, 1, 1, 1, 1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getRawOffset() {
|
||||
public void testGetRawOffset() {
|
||||
assertEquals(0, new GmtTimeZone(false, 0, 0).getRawOffset());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void hoursInRange() {
|
||||
public void testHoursInRange() {
|
||||
assertEquals(23 * 60 * 60 * 1000, new GmtTimeZone(false, 23, 0).getRawOffset());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void hoursOutOfRange() {
|
||||
public void testHoursOutOfRange() {
|
||||
assertThrows(IllegalArgumentException.class, () -> new GmtTimeZone(false, 24, 0));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void inDaylightTime() {
|
||||
public void testInDaylightTime() {
|
||||
assertFalse(new GmtTimeZone(false, 0, 0).useDaylightTime());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void minutesInRange() {
|
||||
public void testMinutesInRange() {
|
||||
assertEquals(59 * 60 * 1000, new GmtTimeZone(false, 0, 59).getRawOffset());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void minutesOutOfRange() {
|
||||
public void testMinutesOutOfRange() {
|
||||
assertThrows(IllegalArgumentException.class, () -> new GmtTimeZone(false, 0, 60));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setRawOffset() {
|
||||
public void testSetRawOffset() {
|
||||
assertThrows(UnsupportedOperationException.class, () -> new GmtTimeZone(false, 0, 0).setRawOffset(0));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetOffset() {
|
||||
assertEquals(-(6 * 60 + 30) * 60 * 1000,
|
||||
new GmtTimeZone(true, 6, 30).getOffset(1, 1, 1, 1, 1, 1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToString() {
|
||||
assertEquals("[GmtTimeZone id=\"GMT-12:00\",offset=-43200000]",
|
||||
@ -90,7 +86,7 @@ public void testToString() {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void useDaylightTime() {
|
||||
public void testUseDaylightTime() {
|
||||
assertFalse(new GmtTimeZone(false, 0, 0).useDaylightTime());
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ public class Java15BugFastDateParserTest extends AbstractLangTest {
|
||||
private static final String DATE_PARSER_PARAMETERS = "org.apache.commons.lang3.time.FastDateParserTest#dateParserParameters()";
|
||||
|
||||
@Test
|
||||
public void java15BuggyLocaleTest() throws ParseException {
|
||||
public void testJava15BuggyLocaleTest() throws ParseException {
|
||||
final String buggyLocaleName = "ff_LR_#Adlm";
|
||||
Locale buggyLocale = null;
|
||||
for (final Locale locale : Locale.getAvailableLocales()) {
|
||||
@ -59,7 +59,7 @@ public void java15BuggyLocaleTest() throws ParseException {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void java15BuggyLocaleTestAll() throws ParseException {
|
||||
public void testJava15BuggyLocaleTestAll() throws ParseException {
|
||||
for (final Locale locale : Locale.getAvailableLocales()) {
|
||||
testSingleLocale(locale);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user