Skip to content

paperweight v2

paperweight v2 #400

GitHub Actions / JUnit Test Report failed Oct 26, 2024 in 0s

9 tests run, 7 passed, 1 skipped, 1 failed.

Annotations

Check notice on line 1 in FunctionalTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

FunctionalTest.setupCleanTestRepo()

setupCleanTestRepo()

Check notice on line 1 in FunctionalTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

FunctionalTest.test full vanilla project(Path)

test full vanilla project(Path)

Check notice on line 1 in FunctionalTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

FunctionalTest.test simple test project(Path)

test simple test project(Path)

Check notice on line 1 in ApplyAccessTransformTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

ApplyAccessTransformTest.should apply access transform(Path)

should apply access transform(Path)

Check notice on line 1 in ApplyFilePatchesTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

ApplyFilePatchesTest.should apply patches(Path)

should apply patches(Path)

Check notice on line 1 in ApplySourceATTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

ApplySourceATTest.should apply source access transformers(Path)

should apply source access transformers(Path)

Check failure on line 64 in paperweight-lib/src/test/kotlin/io/papermc/paperweight/tasks/softspoon/RebuildFilePatchesTest.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

RebuildFilePatchesTest.should rebuild patches(Path)

org.opentest4j.AssertionFailedError: File /tmp/junit14278060532863172635/source/Test.java doesn't match expected ==> expected: <public class Test {

    public int dum;
    public String test;

    public Test(String test) {
        this.test = test;
    }

    private final String getTest() {
        return test + "Test"; // Test
    }
}
> but was: <public class Test {

    public int dum;
    public String test;// Paper-AT: public-f test

    public Test(String test) {
        this.test = test;
    }

    private final String getTest() {// Paper-AT: private+f getTest()Ljava/lang/String;
        return test + "Test"; // Test
    }
}
>
Raw output
org.opentest4j.AssertionFailedError: File /tmp/junit14278060532863172635/source/Test.java doesn't match expected ==> expected: <public class Test {

    public int dum;
    public String test;

    public Test(String test) {
        this.test = test;
    }

    private final String getTest() {
        return test + "Test"; // Test
    }
}
> but was: <public class Test {

    public int dum;
    public String test;// Paper-AT: public-f test

    public Test(String test) {
        this.test = test;
    }

    private final String getTest() {// Paper-AT: private+f getTest()Ljava/lang/String;
        return test + "Test"; // Test
    }
}
>
	at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1156)
	at app//io.papermc.paperweight.tasks.TaskTest.compareFile(TaskTest.kt:102)
	at app//io.papermc.paperweight.tasks.TaskTest.compareDir(TaskTest.kt:67)
	at app//io.papermc.paperweight.tasks.softspoon.RebuildFilePatchesTest.should rebuild patches(RebuildFilePatchesTest.kt:64)
	at java.base@17.0.12/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base@17.0.12/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base@17.0.12/java.util.ArrayList.forEach(ArrayList.java:1511)

Check notice on line 1 in ATTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

ATTest.testATFromString()

testATFromString()

Check notice on line 1 in FileUtilsTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

FileUtilsTest.testContentEquals(Path)

testContentEquals(Path)