Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix trueTimestamp not set by SelfDescribing builder (close #451)
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...tracker/src/androidTest/java/com/snowplowanalytics/snowplow/event/SelfDescribingTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.snowplowanalytics.snowplow.event; | ||
|
||
import android.test.AndroidTestCase; | ||
|
||
import com.snowplowanalytics.snowplow.payload.SelfDescribingJson; | ||
|
||
public class SelfDescribingTest extends AndroidTestCase { | ||
|
||
public void testSetTrueTimestamp() { | ||
Event e = SelfDescribing.builder() | ||
.eventData(new SelfDescribingJson("schema")) | ||
.trueTimestamp(123456789) | ||
.build(); | ||
assertEquals(new Long(123456789), e.getTrueTimestamp()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters