Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
test: only check after the class declaration
Browse files Browse the repository at this point in the history
the version changes with each releast
  • Loading branch information
antonydenyer committed Nov 22, 2019
1 parent adfb7c9 commit ed1e0af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.web3j.aion.codegen

import assertk.assertThat
import assertk.assertions.endsWith
import assertk.assertions.exists
import assertk.assertions.isEqualTo
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.io.TempDir
import java.nio.file.Files
Expand All @@ -41,7 +41,7 @@ class AionGeneratorTest {
val actualCode = Paths.get(tmpFolder.toString(), "erc20", "ERC20Token.java")

assertThat(actualCode.toFile()).exists()
assertThat(Files.readString(actualCode)).isEqualTo(
assertThat(Files.readString(actualCode)).endsWith(
Files.readString(Paths.get(expectedCode?.file ?: ""))
)
}
Expand Down
Loading

0 comments on commit ed1e0af

Please sign in to comment.