You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
å ¨å½50ä¸ã®JUnit4ã¦ã¼ã¶ã¼ããã使ã£ã¦ããè¨èªã¨ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã®ã®MLã¨GithubãBitBucketãªãã¸ããªãç£è¦ãã¦ããã¨æãã®ã§ä»ããããããã¾ãããã2014/7/30ã«JUnit4.12 Beta-1ããªãªã¼ã¹ããã¾ããã çµæ§æ¥½ããæ©è½ã追å ããã¦ããã®ã§ãè¦éãã¦ããæ¹ã®ããã«æ å ±ãå ±æããã¦ããã ããã°ã¨æãã¾ãã åºæ¬çã«ãªãªã¼ã¹ããæç²ããªããç´¹ä»ã§ããã容赦ãã ããã Release Notes junit/ReleaseNotes4.12.md at master · junit-team/junit · GitHub å ¨ä½ã®ææ³ JUnit4ãããã®è¶³å ã«ãã£ã¨è¿½ãã¤ããã¨æã£ããï¼ä»ã¾ã§JUnitã¨Spockãéæ¹é ãã¾ãã£ã¦ããï¼ ãã¹ãã©ã³ãã¼ç³» ã¯ã©ã¹é層å JUnitéæ¹é ã³ãã¥ããã£ã«æå ±ã§ããç§ãã¡ã®ãã¹ãã©ã³ãã¼ã§ãããªã«ãã£
JUnitã§ã®ãã¹ãã§ã¯ãå¤ãã¯æ¬¡ã®ããã«æ¸ãã¦ã¾ããã assertEquals("æå¾ å¤", "å®éã®å¤"); ã§ãæ¯è¼ã®ç¨®é¡ã ãassertXxxãããããã§ãã æè¿ã 㨠assertThat("å®éã®å¤", is("æå¾ å¤")); ã®ããã«ãæ¸ãã¾ãã å¥ã«ã©ã£ã¡ã§ããããããã¨ãæã£ã¦ãã®ã§ããã©ãæè¿ã¯assertThatã®ã»ãã使ãããã«ãªãã¾ããã ã¨ããã®ããassertEqualsã使ããã¨ããã¨ãè£å®ã§çµæ§ä¸ã¾ã§ç§»åããå¿ è¦ããã£ãã®ã§ãã ãããassertThatãªãã次ã®ãããªstatic importã«ãã¦ããã°ãasãã§è£å®ãã¦ãæåã«assertThatãåºã¦ãã¾ãã import static org.junit.Assert.assertThat; CoreMatchersã次ã®ããã«importãã¦ããå¿ è¦ãããã¾ããããisãã¨ãã¯è£å®ããã¾ã§ã
G*ã¯ã¼ã¯ã·ã§ããZã¯æ¥æ¬Grails/Groovyã¦ã¼ã¶ã¼ã°ã«ã¼ãã®å®ä¾ã¤ãã³ãã§ããJavaä»®æ³ãã·ã³ä¸ã§åä½ããGroovyãGrailsãGriffonãGradleã¨ãã£ãG*æè¡ããã¼ãã«ããã³ãºãªã³ãã³ã¼ããªã¼ãã£ã³ã°ãèªæ¸ä¼ãªã©åå åã®å 容ãæ¯æ第3éææ¥ã«éå¬ãã¦ãã¾ãã G*ã¯ã¼ã¯ã·ã§ãã"Z" 第11弾㯠JUnit4ÃGroovyãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯éçºï¼ Groovyã«ã¯Spockã¨ããCoolãªãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ãåå¨ãã¾ãããç¹å®ãã¼ã ã«æé©ã§ãããã¯ã¾ãå¥ã®è©±ã«ãªãã¾ããä»åã¯JUnit4ã®APIã使ã£ã¦ãªãªã¸ãã«ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ãä½ããã³ãºãªã³ãè¡ãã¾ããåºæ¬çã«ã¯xUnitã§ãã¹ãã³ã¼ããæ¸ãããã¨ããããJavaãããã¯Groovyã®åºæ¬ææ³ãç解ãã¦ããã°å¤§ä¸å¤«ã§ãã ååã«æ¦è¦ã説æããå¾åã«PCã§ãã³ãºãªã³ãè¡ãã¾ããã
渡辺ã§ãã å æ¥ããJUnitã®ãªãã¸ã§ã¯ãç価æ¯è¼ãæ ããã!ãã¨ããã¹ã©ã¤ããå ¬éããã¾ãããããªãã¸ã§ã¯ãã®ã«ã¹ã¿ã ã¢ãµã¼ã·ã§ã³ãã©ã®ããã«å®ç¾ããããã¨ããåé¡ã¯ãã¦ããããã¹ããå®è·µãã¦ããã¨ããçºçãã¾ãããã®åé¡ã«é¢ãã¦ãå æ¥ã®JJUG CCCã§ãç¸è«ããã¾ãããã¾ããç°¡åã«æ¸ããä»çµã¿ã¯å ±æããæ¹ãè¯ãã®ã§ãããããããªããã§ãcmtestã¨ããã©ã¤ãã©ãªã«ã¾ã¨ãã¾ããã®ã§ç´¹ä»ãããã¨æãã¾ãã Objectã¯ã©ã¹ã®equalsã¡ã½ãã Javaã§ã¯ãªãã¸ã§ã¯ãå士ã®æ¯è¼ã«ã¯Objectã¯ã©ã¹ã®equalsã¡ã½ãããå©ç¨ãããã¨ãå®ç³ã§ããããã¯ã¦ããããã¹ãã®ã¢ãµã¼ã·ã§ã³ã§ãåæ§ã§ãããã¹ãããçµæã«ä½ãããå®æ¸¬å¤ã¨ããã¹ãã®æå¾ å¤ãæ¯è¼ããæãé常ã¯equalsã¡ã½ãããå©ç¨ãã¾ããequalsã¡ã½ããã使ã£ãæ¯è¼ãè¡ãã®ã§ããã°ãå®çªã®assertThatæ§æãå©ç¨ã§
Spring Bootã«ããAPIããã¯ã¨ã³ãæ§ç¯å®è·µã¬ã¤ã 第2ç ä½å人ãã®éçºè ããInfoQã®ããããã¯ãPractical Guide to Building an API Back End with Spring BootããããSpring Bootã使ã£ãREST APIæ§ç¯ã®åºç¤ãå¦ãã ããã®æ¬ã§ã¯ãåºçæã«æ°ãããªãªã¼ã¹ããããã¼ã¸ã§ã³ã§ãã Spring Boot 2 ã使ç¨ãã¦ãããããããSpring Boot3ãæè¿ãªãªã¼ã¹ãããéè¦ãªå¤...
ã¿ãã§ãã å ã»ã©æ¸ããã¨ã³ããªã¼ã§ãã¹ããgradleã§èµ°ãããã®ã§ããã gradleã§ãã¹ãããæã«è¬ã®classMethodã¨ããããã¹ããåæã«æã¿è¾¼ã¾ãã¦ãè½ã¡ã¦å°ã£ã¦ãã â ãã¡ã ãããã (@mike_neck) 2013å¹´5æ25æ¥ ã¨ããç¶æ ãçºçãã¦ã¾ããã å ·ä½çã«ã¯ã 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 package org.mikeneck.multithreads; import org.junit.*; import
ãJUnitå®è·µå ¥éãåçµã»å®è·µä¼ in æ¨ªæµ #6 (ç¹å¥ç·¨) - connpass 2013/05/12 ãJUnitå®è·µå ¥éãåçµã»å®è·µä¼ in æ¨ªæµ #6 (ç¹å¥ç·¨) #junitbook - Togetter ååã¾ã§ã§ãã¡ãã®æ¸ç±ã§ã®ã¤ãã³ãéå¬ã¯è¨5åãæ°ãã¦ããã¾ãããæ¸ç±ã®é²ã¿ã¨ãã¦ãçµç¤ãè¿ãã¤ã¤ããã®ã§ããããã©ããã§èè ãæãã¦é大æçãªã¤ãã³ããâ¦ã¨ããã®ã¯æ§æ°ãªããèãã¦ã¯ãããã®ã®ãããã¨è¨ã£ã¦æ確ãªãã©ã³çã¯ã¾ã ç«ã¦ã¦ããã¾ããã§ããã â¦ããããï¼ã¾ããã®å±éã§ä»åã®ãç¹å¥ç·¨ããéå¬ãããäºã決ã¾ãããã®æ¥(5/12)æããå¤ã¾ã§ä¸¸ä¸æ¥è²»ããã¦ãã²ã£ãããã«æ¿ããå 容ã§åå¼·ä¼ãå®æ½åºæ¥ã¾ããã ç¹å¥ç·¨éå¬ã¾ã§ã®çµç·¯ â¦ã¾ãã1ã¤ã¯èè ã®æ¸¡è¾ºããã5/11ã«JJUGé¢é£ã¤ãã³ãã«åå ã®çºæ±äº¬ã«æ¥ããã¦ãããã¡ããã©ãã®æ¥(5/12:æ¥)ã空ãã¦ãã®ã§ãããªæ
â»Gradle1.6ã¯ã¾ã ãªãªã¼ã¹ããã¦ã¾ããã Mavenã¨JUnitã®Categoryãªã¨ã³ããªãæ¸ãã¤ã¤ãGradle対å¿ãã¦ãªããã ããªã¼ãèªåã§ã¢ããã¼ã·ã§ã³æ¼ãã®æ¸ãããªã¼ãã¨ãæã£ããã§ããâ¦â¦ GradleãCategoryã«å¯¾å¿ããã¨èã㦠gradleããã1.6ããCategory対å¿ããããã©ã©ããªããã ãã⦠2013-04-12 00:09:16 via Twitter for Android æãã¦é ãã¾ãã¦ãè¦ã«ãã£ããæ¸ãã¦ã¾ããã http://www.gradle.org/docs/nightly/userguide/java_plugin.html#junitcategories test { useJUnit { includeCategories 'org.gradle.junit.CategoryA' excludeCategories 'or
JUnitå®è·µå ¥éã®ã第12ç« ãã¼ã¿ãã¼ã¹ã®ãã¹ããã§ãåãä¸ãããã¦ããDbUnitããã®Ruleããæ´¾çãã¦ãRuleã¨ãRuleChainã¨ããã®è¾ºãã¡ãã£ã¨æ¸ãã¦ããã¾ãã JUnitå®è·µå ¥é ~ä½ç³»çã«å¦ã¶ã¦ããããã¹ãã®ææ³ (WEB+DB PRESS plus) ä½è : 渡辺修å¸åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2012/11/21ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼è³¼å ¥: 14人 ã¯ãªãã¯: 273åãã®ååãå«ãããã° (68件) ãè¦ã ã»ããã¢ãã ããã£ã¨ä½¿ããããã«ããããã® build.gradle ã¯ãããªæããMavenã§ãã ããããããã¾ãããã apply plugin: 'java' repositories.mavenCentral() dependencies { testCompile 'com.h2database:h2:1.3.170'
Androidããã°ã©ãã³ã°ã®TOP㸠éçºä¸ã®Androidã¢ããªãï¼åä½ãã¹ããã¬ã¼ã ã¯ã¼ã¯JUnitã使ã£ã¦ãã¹ãããã Eclipseä¸ã§ï¼ãµã³ãã«ã¢ããªãä½ãå§ãã¦ããï¼ ã¢ã¯ãã£ããã£å ã®ãã¸ãã¯ãUIæä½ããã¹ãããæã¾ã§ãï¼åã§è¡ãªãã æ©ããã°ï¼åã è¨äºã®æ«å°¾ã«ã¯ï¼Androidã¢ããªã®èªåãã¹ãã«å½¹ç«ã¤æ å ±ãéç´ãããªã³ã¯éãæ²è¼ã ãªãï¼ã¨ãã¥ã¬ã¼ã¿ãç«ã¡ä¸ãã¦ããã¨éãã¦ï¼åã§çµãããªãã®ã§ï¼ã¢ããªã®åä½ç¢ºèªã¯å®æ©ã§è¡ãªããã¨ã¨ããã 以ä¸ããéå§ã æé ããã§ã¯æ°è¦PJä½ææã«ãã¹ãPJãåæçæããã®ã§ã¯ãªãï¼ æ¢åPJã«å¯¾ãã¦ï¼ãã¹ãPJãå¾ä»ãã§æ°è¦ä½æããã ã¾ãï¼ãã¹ã対象ã®ããã¸ã§ã¯ããä½æããã ãã¡ã¤ã«ï¼æ°è¦ï¼Android Application Project ã§ï¼ ãHelloJUnitãã¨ããå称ã§æ°è¦PJãä½æã Create Act
å¯ãããã ãã Hamcrest ã¨ä¸ç·ã«ä½¿ã£ã¦ããã¦ãã ãã£ã¦ã¿ã ãããªé¢¨ã«æ¸ãã¦ã import org.junit.*; import static org.junit.Assert.*; public class HogeTest { @Test public void hoge() { fail("ãã±ã¼ã"); } } ãããã¦ã $ javac -cp junit-4.11.jar HogeTest.java $ ls HogeTest.class HogeTest.java junit-4.11.jar ã ã¼ãã $ java -cp ./junit-4.11.jar:. junit.textui.TestRunner HogeTest .F Time: 0.003 There was 1 failure: 1) warning(junit.framework.Test
æ¬ã¨ã³ããªã¼ã¯ãG* Advent Calendar 2012ã®24æ¥ç®ã®ã¨ã³ããªã¼ã§ããåæ¥ã¯ã@tetsurokitaharaããã®Groovyã«Processingãï¼ã§ããã ä½ããã¿ã«æ¸ããããªã¨æ©ãã ã®ã§ãããæãã»ã©G*ãªãã¿ã¯æã£ã¦ããããJUnitãã¿ã¨ãªãã¾ãããå®ã¯ãæ¸ç±ãJUnitå®è·µå ¥éãã§ãGroovyãæ´»ç¨ãããããã¯ãå ¥ããäºå®ã ã£ãã®ã§ãããç´é¢ã®é½åä¸ãå ¥ããäºãã§ãã¾ããã§ãã*1ãããã§ãå°ãã ãã§ãããæ¬ã¨ã³ããªã¼ã§è£è¶³ããããªã¨æãã¾ãã ãã¹ãã³ã¼ãã§Groovyã使ã Groovyã¯ãJavaã¨è¦ªåæ§ã®é«ãããã°ã©ãã³ã°è¨èªã§ããä¸å¸ã説å¾ããå ´åã¯ãGroovyã¯Javaã®æ¡å¼µã©ã¤ãã©ãªã§ãï¼ï½·ï¾ï½¯ãã¨è¨ã£ã¦ãè¯ãã§ããããæ¬å½ã¯éçºç°å¢ããã«ããã¼ã«ã®è¨å®ãªã©ã§ä¸å·¥å¤«ããªããã°å©ç¨ã§ãã¾ãããããã®è¾ºã¯è£ã§ããã£ã¨ãã£ã¦ãã¾ãã°OKã§ãã
Groovy!!ï¼æ¨æ¶ï¼ G* Advent Calendar 2012 ã®13æ¥ç®ã§ãããã¾ãã åæ¥: Spockã§ãã«ãã¤ã³ããã¦ããExtensionsã¨ããã®ã¸ã - Yamkazu's Blog / @yamkazuãã ç¿æ¥: groovy.lang.MissingPropertyException*1*2 http://piyopiyoducky.net/gadvent2012/ / @gantawitterãã JUnitãGroovyã§ä½¿ããªã© ä½ãèããã«çªã£è¾¼ã¿ã©ããæºè¼ã®FizzBuzzã¨ãã¹ãï¼è²ã 足ãã¦ãªãï¼ãæ¸ãã¾ãã HogeJava.java HogeJavaTest.java ãããGroovyã§æ¸ãã¨ãã¾ãã HogeGroovyTest.groovy(ã»ã¼ HogeJavaTest.java ã®ã¾ã¾) ãã®ã¾ã¾JUnitã¨ãã¦åãã¾ããEclips
JUnitå®è·µå ¥é ~ä½ç³»çã«å¦ã¶ã¦ããããã¹ãã®ææ³ (WEB+DB PRESS plus) ä½è : 渡辺修å¸åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2012/11/21ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼è³¼å ¥: 14人 ã¯ãªãã¯: 273åãã®ååãå«ãããã° (69件) ãè¦ãå æ¥11/21ã«çºå£²ããé¢é£ããèªæ¸ä¼ãåæå¤çºçã«æ¬æ¥(11/23ãæå¹ã»æ±äº¬ã»å¤§éª)éå¬ãããã¨ããçãä¸ãããè¦ãã¦ããæ¸ç±ãJUnitå®è·µå ¥é ãã ç§å人ã¨ãã¦ãæ¸ç±åçµã«éãä»åã¯Javaã®ä»ã«ãGroovyã§JUnitãã¹ãã³ã¼ããæ±ããããã«ãªã£ã¦ã¿ãããã¨æããã²ã¨ã¾ãã¯Eclipseã§ãã®è¾ºã®ç°å¢ãæ´ããã¹ã試ãã¦ã¿ã¾ããã以ä¸ãã®éã®ç°å¢è¨å®ã¡ã¢ãªã©ã Eclipseã¤ã³ã¹ãã¼ã«oræ¥æ¬èªåè¨å® äºåã«Javaãã¤ã³ã¹ãã¼ã«ã Mac OS X éçºç°å¢æ§ç¯æé ï¼Javaå®è¡ç°å¢(jdk7)
JUnit4å®è·µå ¥éãç®æ¬ãã¦ããã£ãã®ã§ææ³ãªã©ã JUnitå®è·µå ¥é ~ä½ç³»çã«å¦ã¶ã¦ããããã¹ãã®ææ³ (WEB+DB PRESS plus) ä½è : 渡辺修å¸åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2012/11/21ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼è³¼å ¥: 14人 ã¯ãªãã¯: 273åãã®ååãå«ãããã° (69件) ãè¦ã æ¥ããããªãããåã¯Jenkinsã§ã¯æªã ã«JUnit3ã§ãã¹ããæ¸ãã¦ãã¾ããJUnit4ã®æ°ããæ©è½ãä¸å¿ã¯ç¥ã£ã¦ããã¤ããã§ãããããããã£ã¦ç³»çµ±ã ã£ã¦ã¾ã¨ãããã¦ããã¨åèã«ãªãã¾ããæãã¬ããåå¼·ããã¦ãã¾ãã¾ããã ç®æ¬¡ãè¦ã¦ã¿ãã¨ãããã¾ããããã®æ¬ã¯JUnitã®ä½¿ãæ¹ã ãã§ã¯ãªãã¦ãDbUnitã¨ãAndroidã®ãã¹ãã®è©±ã¨ããMavenãJenkinsã§ãã¹ããã©ã使ããã¨ãã話ã«ãå¤ãã®ç´é¢ãå²ããã¦ãã¦ãåºç¯ãªåéã«æãåºãã¦ããå°è±¡
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}