mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-03 04:18:19 +00:00
Co-authored-by: Yugantar Arya <yugantararya@Yugantars-MacBook-Air.local>
This commit is contained in:
co-authored by
Yugantar Arya
parent
bcf88a61fa
commit
fe6841e8c6
@@ -28,13 +28,11 @@ import static com.github.stefanbirkner.systemlambda.SystemLambda.tapSystemOutNor
|
|||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
import com.github.stefanbirkner.systemlambda.Statement;
|
import com.github.stefanbirkner.systemlambda.Statement;
|
||||||
import org.junit.jupiter.api.Disabled;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GroundDive unit tests.
|
* GroundDive unit tests.
|
||||||
*/
|
*/
|
||||||
@Disabled
|
|
||||||
class GroundDiveTest {
|
class GroundDiveTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -69,7 +67,7 @@ class GroundDiveTest {
|
|||||||
var logs = tapSystemOutNormalized(groundDive::activate)
|
var logs = tapSystemOutNormalized(groundDive::activate)
|
||||||
.split("\n");
|
.split("\n");
|
||||||
final var expectedSize = 3;
|
final var expectedSize = 3;
|
||||||
final var log1 = logs[0].split("-")[1].trim() + " -" + logs[0].split("-")[2].trim();
|
final var log1 = logs[0].split("--")[1].trim();
|
||||||
final var expectedLog1 = "Move to ( 0.0, 0.0, -20.0 )";
|
final var expectedLog1 = "Move to ( 0.0, 0.0, -20.0 )";
|
||||||
final var log2 = getLogContent(logs[1]);
|
final var log2 = getLogContent(logs[1]);
|
||||||
final var expectedLog2 = "Play GROUNDDIVE_SOUND with volume 5";
|
final var expectedLog2 = "Play GROUNDDIVE_SOUND with volume 5";
|
||||||
@@ -87,7 +85,7 @@ class GroundDiveTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getLogContent(String log) {
|
private String getLogContent(String log) {
|
||||||
return log.split("-")[1].trim();
|
return log.split("--")[1].trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,13 +28,11 @@ import static com.github.stefanbirkner.systemlambda.SystemLambda.tapSystemOutNor
|
|||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
import com.github.stefanbirkner.systemlambda.Statement;
|
import com.github.stefanbirkner.systemlambda.Statement;
|
||||||
import org.junit.jupiter.api.Disabled;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SkyLaunch unit tests.
|
* SkyLaunch unit tests.
|
||||||
*/
|
*/
|
||||||
@Disabled
|
|
||||||
class SkyLaunchTest {
|
class SkyLaunchTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -86,6 +84,6 @@ class SkyLaunchTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getLogContent(String log) {
|
private String getLogContent(String log) {
|
||||||
return log.split("-")[1].trim();
|
return log.split("--")[1].trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user