49
49
import net .lecousin .framework .io .serialization .annotations .TypeInstantiation ;
50
50
import net .lecousin .framework .io .serialization .annotations .TypeSerializationMethod ;
51
51
import net .lecousin .framework .io .serialization .annotations .TypeSerializer ;
52
+ import net .lecousin .framework .log .Logger ;
53
+ import net .lecousin .framework .log .LoggerFactory ;
52
54
import net .lecousin .framework .math .IntegerUnit .Unit ;
55
+ import net .lecousin .framework .math .TimeUnit ;
53
56
import net .lecousin .framework .text .CharArrayString ;
54
57
import net .lecousin .framework .text .CharArrayStringBuffer ;
55
- import net .lecousin .framework .math .TimeUnit ;
56
58
import net .lecousin .framework .util .ClassUtil ;
57
59
import net .lecousin .framework .util .Factory ;
58
60
import net .lecousin .framework .util .Pair ;
@@ -66,6 +68,8 @@ public abstract class TestSerialization extends LCCoreAbstractTest {
66
68
protected abstract Deserializer createDeserializer ();
67
69
protected abstract SerializationSpecWriter createSpecWriter ();
68
70
71
+ protected Logger logger = LoggerFactory .get (TestSerialization .class );
72
+
69
73
@ Test
70
74
public void testBasics () {
71
75
Deserializer des = createDeserializer ();
@@ -1269,14 +1273,14 @@ protected void checkIO(IO.Readable.Seekable io1, IO.Readable io2) throws Excepti
1269
1273
protected void print (IO .Readable .Seekable io , Object o ) throws Exception {
1270
1274
String content = IOUtil .readFullyAsStringSync (io , StandardCharsets .UTF_8 );
1271
1275
io .seekSync (SeekType .FROM_BEGINNING , 0 );
1272
- System . out . println ("Serialization result for " + (o == null ? "null" : o .getClass ().getName ()) + "\r \n " + content );
1276
+ logger . trace ("Serialization result for " + (o == null ? "null" : o .getClass ().getName ()) + "\r \n " + content );
1273
1277
}
1274
1278
1275
1279
protected void printSpec (IO .Readable .Seekable io , Class <?> type ) throws Exception {
1276
1280
io .seekSync (SeekType .FROM_BEGINNING , 0 );
1277
1281
String content = IOUtil .readFullyAsStringSync (io , StandardCharsets .UTF_8 );
1278
1282
io .seekSync (SeekType .FROM_BEGINNING , 0 );
1279
- System . out . println ("Serialization specification for " + type .getName () + "\r \n " + content );
1283
+ logger . trace ("Serialization specification for " + type .getName () + "\r \n " + content );
1280
1284
}
1281
1285
1282
1286
@ SuppressWarnings ("unused" )
0 commit comments