mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 19:32:56 +00:00
Added missing DateAndFlagsTest - no errors in core junit tests now
This commit is contained in:
1 parent
ccc5923ab3
commit
f57d91ac16
1 file changed
+31
@@ -0,0 +1,31 @@
|
||||
package net.i2p.data;
|
||||
/*
|
||||
* free (adj.): unencumbered; not under the control of others
|
||||
* Written by str4d in 2012 and released into the public domain
|
||||
* with no warranty of any kind, either expressed or implied.
|
||||
* It probably won't make your computer catch on fire, or eat
|
||||
* your children, but it might. Use at your own risk.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Test harness for loading / storing DateAndFlags objects
|
||||
*
|
||||
* @author str4d
|
||||
*/
|
||||
public class DateAndFlagsTest extends StructureTest {
|
||||
|
||||
@Override
|
||||
public DataStructure createDataStructure() throws DataFormatException {
|
||||
DateAndFlags daf = new DateAndFlags();
|
||||
daf.setDate(0);
|
||||
daf.setFlags(0);
|
||||
return daf;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataStructure createStructureToRead() {
|
||||
return new DateAndFlags();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user