Java Code Examples for org.joda.time.DateTimeFieldType#secondOfDay()

The following examples show how to use org.joda.time.DateTimeFieldType#secondOfDay() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestPreciseDateTimeField.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public void test_getType() {
    BaseDateTimeField field = new PreciseDateTimeField(
        DateTimeFieldType.secondOfDay(),
        ISOChronology.getInstanceUTC().millis(),
        ISOChronology.getInstanceUTC().hours()
    );
    assertEquals(DateTimeFieldType.secondOfDay(), field.getType());
}
 
Example 2
Source File: TestPreciseDateTimeField.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public void test_getName() {
    BaseDateTimeField field = new PreciseDateTimeField(
        DateTimeFieldType.secondOfDay(),
        ISOChronology.getInstanceUTC().millis(),
        ISOChronology.getInstanceUTC().hours()
    );
    assertEquals("secondOfDay", field.getName());
}
 
Example 3
Source File: TestPreciseDateTimeField.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public void test_toString() {
    BaseDateTimeField field = new PreciseDateTimeField(
        DateTimeFieldType.secondOfDay(),
        ISOChronology.getInstanceUTC().millis(),
        ISOChronology.getInstanceUTC().hours()
    );
    assertEquals("DateTimeField[secondOfDay]", field.toString());
}
 
Example 4
Source File: TestPreciseDateTimeField.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public void test_toString() {
    BaseDateTimeField field = new PreciseDateTimeField(
        DateTimeFieldType.secondOfDay(),
        ISOChronology.getInstanceUTC().millis(),
        ISOChronology.getInstanceUTC().hours()
    );
    assertEquals("DateTimeField[secondOfDay]", field.toString());
}
 
Example 5
Source File: TestPreciseDateTimeField.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public void test_getName() {
    BaseDateTimeField field = new PreciseDateTimeField(
        DateTimeFieldType.secondOfDay(),
        ISOChronology.getInstanceUTC().millis(),
        ISOChronology.getInstanceUTC().hours()
    );
    assertEquals("secondOfDay", field.getName());
}
 
Example 6
Source File: TestPreciseDateTimeField.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public void test_getType() {
    BaseDateTimeField field = new PreciseDateTimeField(
        DateTimeFieldType.secondOfDay(),
        ISOChronology.getInstanceUTC().millis(),
        ISOChronology.getInstanceUTC().hours()
    );
    assertEquals(DateTimeFieldType.secondOfDay(), field.getType());
}
 
Example 7
Source File: TestPreciseDurationDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_getType() {
    BaseDateTimeField field = new MockPreciseDurationDateTimeField(
        DateTimeFieldType.secondOfDay(), new MockCountingDurationField(DurationFieldType.minutes()));
    assertEquals(DateTimeFieldType.secondOfDay(), field.getType());
}
 
Example 8
Source File: TestBaseDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_toString() {
    BaseDateTimeField field = new MockBaseDateTimeField(DateTimeFieldType.secondOfDay());
    assertEquals("DateTimeField[secondOfDay]", field.toString());
}
 
Example 9
Source File: TestBaseDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_getName() {
    BaseDateTimeField field = new MockBaseDateTimeField(DateTimeFieldType.secondOfDay());
    assertEquals("secondOfDay", field.getName());
}
 
Example 10
Source File: TestBaseDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_getType() {
    BaseDateTimeField field = new MockBaseDateTimeField(DateTimeFieldType.secondOfDay());
    assertEquals(DateTimeFieldType.secondOfDay(), field.getType());
}
 
Example 11
Source File: TestPreciseDurationDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_toString() {
    BaseDateTimeField field = new MockPreciseDurationDateTimeField(
        DateTimeFieldType.secondOfDay(), new MockCountingDurationField(DurationFieldType.minutes()));
    assertEquals("DateTimeField[secondOfDay]", field.toString());
}
 
Example 12
Source File: TestPreciseDurationDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_getName() {
    BaseDateTimeField field = new MockPreciseDurationDateTimeField(
        DateTimeFieldType.secondOfDay(), new MockCountingDurationField(DurationFieldType.minutes()));
    assertEquals("secondOfDay", field.getName());
}
 
Example 13
Source File: TestPreciseDurationDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_getType() {
    BaseDateTimeField field = new MockPreciseDurationDateTimeField(
        DateTimeFieldType.secondOfDay(), new MockCountingDurationField(DurationFieldType.minutes()));
    assertEquals(DateTimeFieldType.secondOfDay(), field.getType());
}
 
Example 14
Source File: TestBaseDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_toString() {
    BaseDateTimeField field = new MockBaseDateTimeField(DateTimeFieldType.secondOfDay());
    assertEquals("DateTimeField[secondOfDay]", field.toString());
}
 
Example 15
Source File: TestBaseDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_getName() {
    BaseDateTimeField field = new MockBaseDateTimeField(DateTimeFieldType.secondOfDay());
    assertEquals("secondOfDay", field.getName());
}
 
Example 16
Source File: TestBaseDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_getType() {
    BaseDateTimeField field = new MockBaseDateTimeField(DateTimeFieldType.secondOfDay());
    assertEquals(DateTimeFieldType.secondOfDay(), field.getType());
}
 
Example 17
Source File: TestPreciseDurationDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_toString() {
    BaseDateTimeField field = new MockPreciseDurationDateTimeField(
        DateTimeFieldType.secondOfDay(), new MockCountingDurationField(DurationFieldType.minutes()));
    assertEquals("DateTimeField[secondOfDay]", field.toString());
}
 
Example 18
Source File: TestPreciseDurationDateTimeField.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void test_getName() {
    BaseDateTimeField field = new MockPreciseDurationDateTimeField(
        DateTimeFieldType.secondOfDay(), new MockCountingDurationField(DurationFieldType.minutes()));
    assertEquals("secondOfDay", field.getName());
}