Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
veikokaap committed Mar 11, 2018
1 parent d5ac08c commit d302e85
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
<artifactId>server-logic</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ package ee.veikokaap.debugproxy.tests

import ee.veikokaap.debugproxy.testframework.DebuggerProcess
import ee.veikokaap.debugproxy.testframework.JvmProcess
import org.hamcrest.Matchers
import org.junit.Assert
import java.util.*
import kotlin.test.assertEquals

fun Deque<String>.assertContainsOnly(vararg lines: String) {
lines.forEach{line -> assertEquals(line, this.pollFirst())}
assertEquals(null, this.pollFirst())
Assert.assertThat(this, Matchers.`is`(Matchers.empty()))
}

inline fun runTest(testClass: Class<*>, test: (JvmProcess, DebuggerProcess) -> Unit) {
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<!--Logging-->
<dependency>
<groupId>org.slf4j</groupId>
Expand Down

0 comments on commit d302e85

Please sign in to comment.