Kotlinã«ä½ãèããã«Theoryã¨DataPointsã使ã£ããã¹ããæ¸ããã¨ããã¨ãã¼ã¿ãJUnitããåç §ã§ããã¨ã©ã¼ã«ãªãã Kotlinã«staticã¯ãªãã®ã§companion objectãä½ã£ã¦@JvmFieldãã¤ãããã¨ã§JUnitããåç §ã§ããããã«ãªãã @RunWith(Theories::class) class SampleTest { companion object { @DataPoints @JvmField val data = listOf( 1 to 1, 2 to 4, 3 to 9 ) } @Theory fun testSquare(testData: Pair<Int, Int>) { val result = Calc().square(testData.first) assertEquals("expected:" + testD
{{#tags}}- {{label}}
{{/tags}}