Post

JUnit Test 예제

https://github.com/audtjddld/angularjs-springboot-jpa-example/blob/changeProcess/demo2/src/test/java/com/user/controller/UserTest.java

https://github.com/audtjddld/angularjs-springboot-jpa-example

audtjddld/angularjs-springboot-jpa-exampleangularjs-springboot-jpa-example - new sample sitegithub.com

계속해서 작성중이다. 모자란 부분은 추후 작성 예정.

return 되는 컨텐츠를 받는 방법은 ObjectMapper를 이용하여 값을 생성하는 방법이 있다.

ObjectMapper om = new ObjectMapper();
        AuthToken authToken = om.readValue(content, AuthToken.class);

 —————————————— 2016.06.22 추가 ————————————————

matcher 부분

http://tutorials.jenkov.com/java-unit-testing/matchers.html

http://tutorials.jenkov.com/java-unit-testing/matchers.html

MatchersThis tutorial explains how the Matchers class in JUnit works, which enable your Java unit tests to do more advanced matching of valu…tutorials.jenkov.com

This article is licensed under CC BY 4.0 by the author.