fix minor issues
This commit is contained in:
parent
c1132aa58a
commit
cf5c884ca0
@ -20,8 +20,13 @@ import com.google.refine.tests.RefineTest;
|
|||||||
|
|
||||||
|
|
||||||
public class IncTests extends RefineTest {
|
public class IncTests extends RefineTest {
|
||||||
|
private static Properties bindings;
|
||||||
static Properties bindings;
|
private DateTimeFormatter formatter = new DateTimeFormatterBuilder()
|
||||||
|
.append(DateTimeFormatter.BASIC_ISO_DATE).appendLiteral('-')
|
||||||
|
.appendPattern("HH:mm:ss")
|
||||||
|
.appendPattern("[.SSSSSSSSS][.SSSSSS][.SSS]") // optional nanos, with 9, 6 or 3 digits
|
||||||
|
.appendOffset("+HH:mm", "Z")
|
||||||
|
.toFormatter();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@BeforeTest
|
@BeforeTest
|
||||||
@ -30,12 +35,12 @@ public class IncTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@BeforeMethod
|
@BeforeMethod
|
||||||
public void SetUp() {
|
public void setUp() {
|
||||||
bindings = new Properties();
|
bindings = new Properties();
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterMethod
|
@AfterMethod
|
||||||
public void TearDown() {
|
public void tearDown() {
|
||||||
bindings = null;
|
bindings = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,13 +60,6 @@ public class IncTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private DateTimeFormatter formatter = new DateTimeFormatterBuilder()
|
|
||||||
.append(DateTimeFormatter.BASIC_ISO_DATE).appendLiteral('-')
|
|
||||||
.appendPattern("HH:mm:ss")
|
|
||||||
.appendPattern("[.SSSSSSSSS][.SSSSSS][.SSS]") // optional nanos, with 9, 6 or 3 digits
|
|
||||||
.appendOffset("+HH:mm", "Z")
|
|
||||||
.toFormatter();
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testInc() {
|
public void testInc() {
|
||||||
OffsetDateTime source = OffsetDateTime.parse("20180510-23:55:44.000789000Z",
|
OffsetDateTime source = OffsetDateTime.parse("20180510-23:55:44.000789000Z",
|
||||||
|
@ -18,8 +18,13 @@ import com.google.refine.tests.RefineTest;
|
|||||||
|
|
||||||
|
|
||||||
public class NowTests extends RefineTest {
|
public class NowTests extends RefineTest {
|
||||||
|
private static Properties bindings;
|
||||||
static Properties bindings;
|
private DateTimeFormatter formatter = new DateTimeFormatterBuilder()
|
||||||
|
.append(DateTimeFormatter.BASIC_ISO_DATE).appendLiteral('-')
|
||||||
|
.appendPattern("HH:mm:ss")
|
||||||
|
.appendPattern("[.SSSSSSSSS][.SSSSSS][.SSS]") // optional nanos, with 9, 6 or 3 digits
|
||||||
|
.appendOffset("+HH:mm", "Z")
|
||||||
|
.toFormatter();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@BeforeTest
|
@BeforeTest
|
||||||
@ -28,12 +33,12 @@ public class NowTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@BeforeMethod
|
@BeforeMethod
|
||||||
public void SetUp() {
|
public void setUp() {
|
||||||
bindings = new Properties();
|
bindings = new Properties();
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterMethod
|
@AfterMethod
|
||||||
public void TearDown() {
|
public void tearDown() {
|
||||||
bindings = null;
|
bindings = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,13 +58,6 @@ public class NowTests extends RefineTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private DateTimeFormatter formatter = new DateTimeFormatterBuilder()
|
|
||||||
.append(DateTimeFormatter.BASIC_ISO_DATE).appendLiteral('-')
|
|
||||||
.appendPattern("HH:mm:ss")
|
|
||||||
.appendPattern("[.SSSSSSSSS][.SSSSSS][.SSS]") // optional nanos, with 9, 6 or 3 digits
|
|
||||||
.appendOffset("+HH:mm", "Z")
|
|
||||||
.toFormatter();
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testNow() {
|
public void testNow() {
|
||||||
// 2018-4-30 23:55:44
|
// 2018-4-30 23:55:44
|
||||||
|
Loading…
Reference in New Issue
Block a user