Skip to content

Commit

Permalink
Merge pull request #1471 from scottmarlow/remove_jws_tests
Browse files Browse the repository at this point in the history
Follow on work to remove more web services + some related security manager permission checking tests
  • Loading branch information
scottmarlow authored Aug 20, 2024
2 parents 99fbe51 + 4106493 commit e3a6947
Show file tree
Hide file tree
Showing 53 changed files with 1 addition and 3,615 deletions.
21 changes: 0 additions & 21 deletions appclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,27 +98,6 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<executions>
<execution>
<id>hello-service-testapp</id>
<goals>
<goal>wsimport</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<wsdlDirectory>${project.basedir}/src/main/java/com/sun/ts/tests/appclient/deploy/metadatacomplete/testapp/</wsdlDirectory>
<wsdlFiles>
<wsdlFile>HelloService.wsdl</wsdlFile>
</wsdlFiles>
<packageName>com.sun.ts.tests.appclient.deploy.metadatacomplete.testapp</packageName>
<sourceDestDir>${project.build.directory}/generated-sources/</sourceDestDir>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import jakarta.mail.Session;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.PersistenceUnit;
import jakarta.xml.ws.WebServiceRef;

@MailSessionDefinition(name = "java:comp/myMailSession", host = "smtp.gmail.com", transportProtocol = "smtps", properties = {
"mail.debug=true" })
Expand All @@ -63,9 +62,6 @@ public class TestAppClient extends EETest {
@EJB
static DataStoreRemote dataStore;

@WebServiceRef(name = "service/HelloService")
static HelloService service;

@Resource(lookup = "java:app/jms/TestConnectionFactory")
private static ConnectionFactory testFac;

Expand Down Expand Up @@ -229,32 +225,6 @@ public void testEJBAnnotation() throws Exception {
}
}

/**
* @testName: testWebServiceRefAnnotation
*
* @assertion_ids: JavaEE:SPEC:323
*
* @test_Strategy:
*
* We check that:
*
* - When the meta-data complete attribute is set to
* true,WebServiceRef annotation should be ignored - as it is
* one of the annotations to which metadata-complete is
* applicable.
*
*/
public void testWebServiceRefAnnotation() throws Exception {
try {
logMsg("service" + service);
if (null != service) {
throw new Exception("WebServiceRefAnnotation test failed!");
}
} catch (Exception e) {
throw new Exception("WebServiceRefAnnotation test failed: " + e, e);
}
}

/**
* @testName: testDataSourceDefinitionAnnotation
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import com.sun.javatest.Status;
import jakarta.mail.Session;
import jakarta.mail.MailSessionDefinition;
import jakarta.ejb.EJB;
import jakarta.xml.ws.WebServiceRef;
import jakarta.annotation.sql.DataSourceDefinition;
import jakarta.jms.JMSConnectionFactoryDefinition;
import jakarta.jms.JMSDestinationDefinition;
Expand Down Expand Up @@ -76,8 +75,6 @@ public class TestAppClient extends EETest
private static Session session;
@EJB
static DataStoreRemote dataStore;
@WebServiceRef(name="service/HelloService")
static HelloService service;
@Resource(lookup="java:app/jms/TestConnectionFactory")
private static ConnectionFactory testFac;
@Resource(lookup="java:app/jms/TestQ")
Expand Down Expand Up @@ -268,36 +265,6 @@ public class TestAppClient extends EETest
}
}

/**
* @testName: testWebServiceRefAnnotation
*
* @assertion_ids: JavaEE:SPEC:323
*
* @test_Strategy:
*
* We check that:
*
* - When the meta-data complete attribute is set to true,WebServiceRef annotation should be ignored
* - as it is one of the annotations to which metadat-complete is applicable.
*
*/
public void testWebServiceRefAnnotation() throws Exception {

try {


//logMsg("datastore"+dataStore);
logMsg("service"+service);
if(null != service){
throw new Exception("WebServiceRefAnnotation test failed!");
}

}
catch (Exception e) {
throw new Exception("WebServiceRefAnnotation test failed: " + e, e);
}
}

/**
* @testName: testDataSourceDefinitionAnnotation
*
Expand Down
Loading

0 comments on commit e3a6947

Please sign in to comment.