Skip to content

Commit c5b2608

Browse files
committed
applied googleJavaFormat plugin
Signed-off-by: Konstantin Läufer <[email protected]>
1 parent 18cf850 commit c5b2608

File tree

3 files changed

+43
-44
lines changed

3 files changed

+43
-44
lines changed

src/main/java/hw/HelloWorld.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
public class HelloWorld {
44

5-
public String getMessage() {
6-
return "hello world";
7-
}
8-
9-
public int getYear() {
10-
return 2008;
11-
}
5+
public String getMessage() {
6+
return "hello world";
7+
}
8+
9+
public int getYear() {
10+
return 2008;
11+
}
1212
}

src/main/java/hw/Main.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
public class Main {
66

7-
public static void main(final String[] args) {
8-
System.out.println("args = " + Arrays.asList(args));
9-
final HelloWorld instance = new HelloWorld();
10-
System.out.println(instance.getMessage());
11-
System.out.println(instance.getYear());
12-
System.out.println("bye for now");
13-
}
7+
public static void main(final String[] args) {
8+
System.out.println("args = " + Arrays.asList(args));
9+
final HelloWorld instance = new HelloWorld();
10+
System.out.println(instance.getMessage());
11+
System.out.println(instance.getYear());
12+
System.out.println("bye for now");
13+
}
1414
}

src/test/java/hw/TestHelloWorld.java

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,33 @@
88

99
public class TestHelloWorld {
1010

11-
private HelloWorld fixture;
12-
13-
@Before
14-
public void setUp() throws Exception {
15-
fixture = new HelloWorld();
16-
}
17-
18-
@After
19-
public void tearDown() throws Exception {
20-
fixture = null;
21-
}
22-
23-
@Test
24-
public void getMessage() {
25-
assertNotNull(fixture);
26-
assertEquals("hello world", fixture.getMessage());
27-
}
28-
29-
@Test
30-
public void getMessage2() {
31-
assertNull(fixture);
32-
assertEquals("hello world", fixture.getMessage());
33-
}
34-
35-
@Test
36-
public void getYear() {
37-
assertNotNull(fixture);
38-
assertEquals(2009, fixture.getYear());
39-
}
40-
11+
private HelloWorld fixture;
12+
13+
@Before
14+
public void setUp() throws Exception {
15+
fixture = new HelloWorld();
16+
}
17+
18+
@After
19+
public void tearDown() throws Exception {
20+
fixture = null;
21+
}
22+
23+
@Test
24+
public void getMessage() {
25+
assertNotNull(fixture);
26+
assertEquals("hello world", fixture.getMessage());
27+
}
28+
29+
@Test
30+
public void getMessage2() {
31+
assertNull(fixture);
32+
assertEquals("hello world", fixture.getMessage());
33+
}
34+
35+
@Test
36+
public void getYear() {
37+
assertNotNull(fixture);
38+
assertEquals(2009, fixture.getYear());
39+
}
4140
}

0 commit comments

Comments
 (0)