-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogTest.java
More file actions
47 lines (41 loc) · 1.18 KB
/
Copy pathLogTest.java
File metadata and controls
47 lines (41 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.tuanchauict.log;
import com.opla.manga.utils.Log;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by tuanchauict on 11/4/14 06:49.
* com.opla.manga
*/
public class LogTest extends TestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
}
public void testTracking(){
Log.startTrack("Long task");
for(int i = 0; i < 10; i++){
try{
Thread.sleep(100);
Log.printTrack("Long task");
}
catch (Exception e){
System.out.println(e.getMessage());
}
}
Log.stopTrack("Long task");
Log.printTrack("Long task");
}
public void testLog(){
Log.wtf();
Log.here();
Log.i("Blah blah");
Log.i("Tag", "Blah blah");
Log.i((String)null);
Log.i("Blah blah", new Throwable());
Log.i(new String[]{"Blah 0", "Blah 1"});
Log.i(new String[]{"Blah 0", "Blah 1"}, false);
Log.i(Arrays.asList(new String[]{"Blag 0", "Blah 1"}));
Log.i(Arrays.asList(new String[]{"Blag 0", "Blah 1"}), false);
}
}