package io.github.wreulicke;

import static org.assertj.core.api.Assertions.assertThat;

import java.beans.ConstructorProperties;
import java.io.IOException;

import org.junit.Test;

import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import io.github.wreulicke.application.User;

public class AssertJSandbox {
  @Test
  public void test(){
    System.out.println("aaaaaaaa");
    assertThat(false).isEqualTo(true);
  }
  
  @Test
  public void jacksonTest() throws JsonParseException, JsonMappingException, IOException{
    ObjectMapper mapper = new ObjectMapper();
    TestBean bean=mapper.readValue("{\"x\":2,\"y\":3}", TestBean.class);
    System.out.println(bean.v1+" "+bean.v2);
    User user=mapper.readValue("{\"name\":\"sss\"}", User.class);
    System.out.println(mapper);
  }
  static class TestBean {
    private int v1, v2;

    @ConstructorProperties({"x", "y"})
    public TestBean(int a, int b) {
        v1 = a;
        v2 = b;
    }
}
}

@@ -431,120 +431,8 @@
 est%0A
-  public void test()%7B%0A    System.out.println(%22aaaaaaaa%22);%0A    assertThat(false).isEqualTo(true);%0A  %7D%0A  %0A  @Test%0A
   pu
@@ -517,16 +517,16 @@
 eption%7B%0A
+
     Obje
@@ -627,32 +627,109 @@
 TestBean.class);
+%0A%0A    assertThat(bean.v1).isEqualTo(2);%0A    assertThat(bean.v2).isEqualTo(3);
 %0A    System.out.
@@ -832,33 +832,50 @@
     
-System.out.println(mapper
+assertThat(user.getName()).isEqualTo(%22sss%22
 );%0A 

fix test case