Skip to content

Commit 598a543

Browse files
committed
Fix test
1 parent 123454a commit 598a543

File tree

1 file changed

+4
-4
lines changed
  • src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github

1 file changed

+4
-4
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/GitHub524.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
1010
import com.fasterxml.jackson.module.kotlin.testPrettyWriter
1111
import org.junit.Test
1212
import kotlin.test.assertEquals
13-
import kotlin.test.assertNotEquals
1413

1514
// Most of the current behavior has been tested on GitHub464, so only serializer-related behavior is tested here.
1615
class GitHub524 {
@@ -59,12 +58,13 @@ class GitHub524 {
5958

6059
class SerializeByAnnotation(@get:JsonSerialize(using = Serializer::class) val foo: HasSerializer = HasSerializer(1))
6160

61+
// fixed on #659
6262
@Test
63-
fun failing() {
64-
val writer = jacksonObjectMapper().writerWithDefaultPrettyPrinter()
63+
fun getterAnnotated() {
64+
val writer = jacksonObjectMapper().testPrettyWriter()
6565

6666
// JsonSerialize is not working now.
67-
assertNotEquals(
67+
assertEquals(
6868
"""
6969
{
7070
"foo" : "HasSerializer(value=1)"

0 commit comments

Comments
 (0)