mirror of
https://github.com/tiennm99/tjahzi.git
synced 2026-10-14 00:17:02 +00:00
Static imports.
This commit is contained in:
1 parent
dec21db1c2
commit
8e00a7e923
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -9,6 +9,7 @@ import pl.tkowalcz.tjahzi.log4j2.infra.LokiAssert;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.equalTo;
|
||||
import static org.hamcrest.CoreMatchers.hasItems;
|
||||
import static pl.tkowalcz.tjahzi.log4j2.infra.LokiAssert.assertThat;
|
||||
|
||||
class LogLineFragmentationTest extends IntegrationTest {
|
||||
|
||||
@@ -26,7 +27,7 @@ class LogLineFragmentationTest extends IntegrationTest {
|
||||
logger.info(fragmentedLogLine);
|
||||
|
||||
// Then
|
||||
LokiAssert.assertThat(loki)
|
||||
assertThat(loki)
|
||||
.returns(response -> response
|
||||
.body("data.result.size()", equalTo(1))
|
||||
.body("data.result[0].stream.server", equalTo("127.0.0.1"))
|
||||
|
||||
+2
-1
@@ -13,6 +13,7 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.equalTo;
|
||||
import static org.hamcrest.CoreMatchers.hasItems;
|
||||
import static pl.tkowalcz.tjahzi.log4j2.infra.LokiAssert.assertThat;
|
||||
|
||||
class LokiAppenderLargeBatchesTest extends IntegrationTest {
|
||||
|
||||
@@ -40,7 +41,7 @@ class LokiAppenderLargeBatchesTest extends IntegrationTest {
|
||||
}
|
||||
|
||||
// Then
|
||||
LokiAssert.assertThat(loki)
|
||||
assertThat(loki)
|
||||
.withFormParam("&start=" + expectedTimestamp + "&limit=1000&query=%7Bserver%3D%22127.0.0.1%22%7D")
|
||||
.returns(response -> response
|
||||
.body("data.result.size()", equalTo(1))
|
||||
|
||||
Reference in new issue
Block a user