Skip to content

Commit

Permalink
Minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasASE committed Apr 17, 2019
1 parent af49644 commit 8790918
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ object ReportCreator : IReportCreator {

for (i in 1 until events.size) {
when {
events[i].name == "before each" -> beforeAll += events[i].timeStamp.time - events[i-1].timeStamp.time
events[i].name == "before each" -> beforeAll += events[i].timeStamp.time - events[i - 1].timeStamp.time
events[i].name == "after all" -> afterAll += events[i].timeStamp.time - events[i - 1].timeStamp.time
events[i].name == "context refreshed" -> {
spring += events[i].timeStamp.time - events[i-1].timeStamp.time
spring += events[i].timeStamp.time - events[i - 1].timeStamp.time
contextCount++
}
events[i].name == "after all" -> afterAll += events[i].timeStamp.time - events[i-1].timeStamp.time
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ class HelloController {
fun index(): String {
return "Greetings from Spring Boot!"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ class AnotherHelloControllerTest {
.andExpect(status().isOk)
.andExpect(content().string(equalTo("Greetings from Spring Boot!")))
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ class HelloControllerTest {
.andExpect(status().isOk)
.andExpect(content().string(equalTo("Greetings from Spring Boot!")))
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package de.adesso.junitinsightstester.spring

import de.adesso.junitinsights.annotations.JUnitInsights
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertNotEquals
import org.junit.jupiter.api.Nested
Expand Down Expand Up @@ -35,7 +34,7 @@ class NestedSpringTest {
fun strikeRolled() {
newGame()
rollStrike()
assertEquals(standingPins, 0);
assertEquals(standingPins, 0)
}

@Nested
Expand All @@ -52,9 +51,9 @@ class NestedSpringTest {
@Test
fun testSpareGame() {
newGame()
standingPins -= 5;
standingPins -= 5;
assertEquals(standingPins, 0);
standingPins -= 5
standingPins -= 5
assertEquals(standingPins, 0)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ class CalculatorTest {

@Test
fun basicArithmetic() {
assertEquals(1+1, 2)
assertEquals(1 + 1, 2)
}
}
}

0 comments on commit 8790918

Please sign in to comment.