package karate;

import com.intuit.karate.junit5.Karate;
import org.junit.jupiter.api.TestFactory;

public class SampleTest {

    @TestFactory
    public Object testSample() {
        return Karate.feature("sample").relativeTo(getClass()).run();
    }
    
    @TestFactory
    public Object testTags() {
        return Karate.feature("tags").tags("@second").relativeTo(getClass()).run();
    }

    @TestFactory
    public Object testFullPath() {
        return Karate
                .feature("classpath:karate/tags.feature")
                .tags("@first").run();
    }

}
@@ -93,23 +93,16 @@
 ctory;%0A%0A
-public 
 class Sa
@@ -126,39 +126,32 @@
 TestFactory%0A    
-public 
 Object testSampl
@@ -250,39 +250,32 @@
 TestFactory%0A    
-public 
 Object testTags(
@@ -394,15 +394,8 @@
     
-public 
 Obje
@@ -541,8 +541,9 @@
     %7D%0A%0A%7D
+%0A

Remove public modifier