Skip to content

Commit

Permalink
Use junit assert instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvoncek committed Oct 28, 2024
1 parent 486919c commit 479a4b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.node.JsonNodeFactory
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import junit.framework.Assert.assertFalse
import org.assertj.core.api.Assertions
import org.junit.Assert.assertTrue
import org.junit.Before
Expand Down Expand Up @@ -56,11 +55,11 @@ internal class YamlConfigTest {
fun testParseRowCache() {
var yamlFile = openYamlFile("/helpers/rowCacheEnabled.yaml")
var cassandraYaml = CassandraYaml(yamlFile)
Assertions.assertThat(cassandraYaml.isRowCacheEnabled())
assertTrue(cassandraYaml.isRowCacheEnabled())

yamlFile = openYamlFile("/helpers/rowCacheDisabled.yaml")
cassandraYaml = CassandraYaml(yamlFile)
// this should fail but the Assertions are somehow not effective
Assertions.assertThat(cassandraYaml.isRowCacheEnabled())
assertTrue(cassandraYaml.isRowCacheEnabled())
}
}
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
row_cache_size: 0MiB
key: "value"
key: "value"
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
row_cache_size: 1
key: "value"
key: "value"

0 comments on commit 479a4b4

Please sign in to comment.