Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the sigtest classs public for use in the arquillian test artifacts #1367

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
* and returning any package name that starts with the parent package name and a
* trailing period character.
*/
class PackageList {
public class PackageList {

// Any line in the packageFile starting with this character is a comment
private static final char COMMENT_CHAR = '#';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class SigTestData {

private Properties props;

public SigTestData(Properties props) {
this.props = props;
}
public SigTestData() {
this.props = System.getProperties();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,25 @@ protected String[] getClasses(String vehicleName) {
* When an error occurs reading or saving the state information
* processed by this method.
*/
public void setup() throws Exception {
public void setup(String[] args, Properties p) throws Exception {
try {
TestUtil.logMsg("$$$ SigTestEE.setup() called");
this.testInfo = new SigTestData();
this.testInfo = new SigTestData(p);
TestUtil.logMsg("$$$ SigTestEE.setup() complete");
} catch (Exception e) {
logErr("Unexpected exception " + e.getMessage());
throw new Exception("setup failed!", e);
}
}

/**
* calls {@link #setup(String[], Properties)} with null and System.getProperties()
* @throws Exception
*/
public void setup() throws Exception {
setup(null, System.getProperties());
}

/**
* Called by the test framework to run this test. This method utilizes the
* state information set in the setup method to run the signature tests. All
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ private static void dumpTestArguments(String[] params) {
* A simple data structure containing the fully qualified path to the
* signature file as well as the version being tested.
*/
protected static class SignatureFileInfo {
public static class SignatureFileInfo {

private String file;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class JavaEESigTest extends SigTestEE {
"jaxws", "jaxb", "jms", "javamail", "jacc", "jaspic",
"wsmd"));

enum Containers {
public enum Containers {
ejb, servlet, jsp, appclient
};

Expand Down
Loading