Java file renaming and throwing error while running test

imhashir
Messages : 15
Inscription : lun. juin 17, 2019 12:29 pm

Java file renaming and throwing error while running test

Message par imhashir »

My code is completely fine. But when I hit Build on jenkins, it throws this error. Looks like its renaming the Java file at some point while executing the test. Please guide me how can I fix this issue.

Code : Tout sélectionner

[ERROR] It must have java sources in a java subdirectory in resources directory
[ERROR] Test Automation Engine error (non SUT) : method 'convert' from engine component of class 'org.squashtest.ta.plugin.commons.converter.FileToJavaCodeBundle' with argument 'org.squashtest.ta.framework.components.FileResource'  has thrown an exception.
org.squashtest.ta.framework.exception.BadDataException: Java code compilation failed:
C:\Users\RUBA_H~1\AppData\Local\Temp\2\Squash_TA\20190618_115700_312\tests\tests\test2.ta\TestFile24938931466518665545.java:12: error: class TestFile2 is public, should be declared in a file named TestFile2.java
public class TestFile2 {
       ^

Répondre