コード例 #1
0
 @Test
 public void testGetPackageName2() {
   ClassCoverageImpl data =
       new ClassCoverageImpl(
           "org/jacoco/examples/Sample", 0, false, null, "java/lang/Object", new String[0]);
   assertEquals("org/jacoco/examples", data.getPackageName());
 }
コード例 #2
0
 @Test
 public void testGetPackageName1() {
   ClassCoverageImpl data =
       new ClassCoverageImpl(
           "ClassInDefaultPackage", 0, false, null, "java/lang/Object", new String[0]);
   assertEquals("", data.getPackageName());
 }