-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathMainTest.java
More file actions
55 lines (44 loc) · 1.29 KB
/
MainTest.java
File metadata and controls
55 lines (44 loc) · 1.29 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
48
49
50
51
52
53
54
55
import org.junit.Assert;
import org.junit.Test;
public class MainTest {
Main test = new Main();
/**
* //System.out.println(newMain.countMilk323());
* //System.out.println(newMain.correctSeparator());
* //System.out.println(newMain.findSeparatorCorrected());
* System.out.println(newMain.reformatAfterCorrectSeparator());
*/
@Test
public void testPoundToNewLine(){
System.out.println(test.getList(test.readRawDataToString()));
}
@Test
public void testCorrectSeparator(){
System.out.println(test.correctSeparator());
}
@Test
public void testFindSeparatorCorrected(){
System.out.println(test.findSeparatorCorrected());
}
@Test
public void testReformatAfterCorrectSeparator(){
System.out.println(test.reformatAfterCorrectSeparator());
}
@Test
public void testCountMilk323(){
//given
Integer expected = 8;
//when
Integer actual = test.countMilk323();
//then
Assert.assertEquals(expected,actual);
}
@Test
public void testReadyForFormatting(){
System.out.println(test.readyForFormatting());
}
@Test
public void testFinal(){
System.out.println(test.doingTheFormatting());
}
}