{"id":482,"date":"2012-06-05T06:31:48","date_gmt":"2012-06-05T06:31:48","guid":{"rendered":"http:\/\/nangchang.nes.or.kr\/?p=482"},"modified":"2012-06-05T06:31:48","modified_gmt":"2012-06-05T06:31:48","slug":"jenkins-sonar-%ec%82%ac%ec%9a%a9-%ec%8b%9c-unit-test-%ec%8b%a4%ed%8c%a8","status":"publish","type":"post","link":"https:\/\/nangchang.nes.or.kr\/?p=482","title":{"rendered":"Jenkins + Sonar \uc0ac\uc6a9 \uc2dc Unit test \uc2e4\ud328"},"content":{"rendered":"<p>Spring MVC \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc704\ud574 Jenkins\ub97c \uc774\uc6a9\ud574 CI \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uace0<br \/>Jenkins\uc758 sonar \ud50c\ub7ec\uadf8\uc778\uc744 \uc0ac\uc6a9\ud574 Sonar\uc640 \uc5f0\uacb0\ud574 \uc0ac\uc6a9 \uc911\uc778\ub370, sonar\uc5d0\uc11c \uc2e4\ud589\ud558\ub294<br \/>Unit test\uac00 \uc54c\uc218 \uc5c6\ub294 \uc774\uc720\ub85c \uc2e4\ud328\ub97c \ud55c\ub2e4.<br \/>\uc815\ud655\ud788\ub294 sonar \uc5d0\uc11c unit test\ub97c \uc704\ud574 \ub3cc\ub9ac\ub294 <span style=\"font-size: 11px; line-height: normal; white-space: pre-wrap; \">cobertura \ub77c\ub294 \ub188\uc774 \ubb38\uc81c\uc778 \ub4ef&#8230; \ud55c\ub370&#8230;<\/span><br \/><span style=\"font-size: 11px; line-height: normal; white-space: pre-wrap; \"><br \/><\/span><\/p>\n<div>\n<blockquote>\n<pre style=\"white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; font-size: 11px; line-height: normal; \">java.lang.IllegalStateException: Failed to load ApplicationContext<\/pre>\n<\/blockquote>\n<pre style=\"word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; \"><blockquote style=\"font-size: 11px; line-height: normal; white-space: pre-wrap; \"><pre style=\"white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; \">Expecting a stackmap frame at branch target 47 in method z.y.x.controller.TestController.list(Lorg\/springframework\/ui\/Model;)Ljava\/lang\/String; at offset 17<\/pre>\n<\/blockquote>\n<pre style=\"font-size: 11px; line-height: normal; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; \">\ub4f1\uc758 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud55c\ub2e4. Jenkins\uc5d0\uc11c \uc790\uccb4\uc801\uc73c\ub85c \ub3cc\ub9ac\ub294 Unit test\ub294 \ubb38\uc81c\uac00 \uc5c6\ub294\uac78\ub85c \ubd10\uc11c<\/pre>\n<pre style=\"font-size: 11px; line-height: normal; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; \">Jenkins\ub098 JUnit\uc758 \ubb38\uc81c\ub294 \uc544\ub2cc \ub4ef\ud558\uace0..<\/pre>\n<pre style=\"font-size: 11px; line-height: normal; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; \">\uc5b4\uc9f8\ub4e0 \uad6c\uae00\uc2e0\uaed8 \uc5f4\uc2ec\ud788 \ubb3c\uc5b4\ubcf8 \uacb0\uacfc, maven plugin \uc911\uc5d0 surefire \ub77c\ub294 \ub188\uc774 \uad00\ub828\uc774 \uc788\ub294 \ub4ef\ud558\ub2e4.<\/pre>\n<pre style=\"font-size: 11px; line-height: normal; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; \">maven\uc758 pom.xml\uc5d0 \ub2e4\uc74c\uc744 \ucd94\uac00\ud574 \uc8fc\uace0 \ube4c\ub4dc\ub97c \ub3cc\ub9ac\ub2c8 \ubb38\uc81c\uac00 \uc5c6\ub2e4.<\/pre>\n<pre style=\"word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; \"><span style=\"font-size: 11px; line-height: normal; white-space: pre-wrap;\"><blockquote>&lt;plugin&gt;\n\t&lt;groupId&gt;org.apache.maven.plugins&lt;\/groupId&gt;\n\t&lt;artifactId&gt;maven-surefire-plugin&lt;\/artifactId&gt;\n\t&lt;version&gt;2.12&lt;\/version&gt;\n\t&lt;configuration&gt;\n\t\t&lt;argLine&gt;-XX:-UseSplitVerifier&lt;\/argLine&gt;\n\t&lt;\/configuration&gt;\n&lt;\/plugin&gt;<\/blockquote><br><\/span><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Spring MVC \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc704\ud574 Jenkins\ub97c \uc774\uc6a9\ud574 CI \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uace0Jenkins\uc758 sonar \ud50c\ub7ec\uadf8\uc778\uc744 \uc0ac\uc6a9\ud574 Sonar\uc640 \uc5f0\uacb0\ud574 \uc0ac\uc6a9 \uc911\uc778\ub370, sonar\uc5d0\uc11c \uc2e4\ud589\ud558\ub294Unit test\uac00 \uc54c\uc218 \uc5c6\ub294 \uc774\uc720\ub85c \uc2e4\ud328\ub97c \ud55c\ub2e4.\uc815\ud655\ud788\ub294 sonar \uc5d0\uc11c unit test\ub97c \uc704\ud574 \ub3cc\ub9ac\ub294 cobertura \ub77c\ub294 \ub188\uc774 \ubb38\uc81c\uc778 \ub4ef&#8230; \ud55c\ub370&#8230; java.lang.IllegalStateException: Failed to load ApplicationContext Expecting a stackmap frame at branch target 47 in method z.y.x.controller.TestController.list(Lorg\/springframework\/ui\/Model;)Ljava\/lang\/String; at offset 17 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[25,27,35],"class_list":["post-482","post","type-post","status-publish","format-standard","hentry","category-pogramming","tag-jenkins","tag-maven","tag-sonar"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/posts\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=482"}],"version-history":[{"count":0,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=\/wp\/v2\/posts\/482\/revisions"}],"wp:attachment":[{"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nangchang.nes.or.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}