public void testAddMissingJmsResourcesNoJmsResources() throws Exception {
  Resource mailSession=new Resource("jdbc/mailSession",ConfigurationEntryType.MAIL_SESSION);
  configuration.addResource(mailSession);
  WebLogicResourceRules.addMissingJmsResources(configuration);
  List<Resource> resources=configuration.getResources();
  assertEquals(1,resources.size());
  assertEquals(mailSession,resources.get(0));
}

public void testAddMissingJmsResourcesNoJmsResources ( ) throws Exception { Resource mailSession = new Resource ( "jdbc/mailSession" , ConfigurationEntryType . MAIL_SESSION ) ; configuration . addResource ( mailSession ) ; WebLogicResourceRules . addMissingJmsResources ( configuration ) ; List < Resource > resources = configuration . getResources ( ) ; assertEquals ( 1 , resources . size ( ) ) ; assertEquals ( mailSession , resources . get ( 0 ) ) ; }
test for adding missing jms resources . if no jms resource is created then nothing will be added - we don ' t need jms server , module or subdeployment .
