aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eji...@apache.org
Subject svn commit: r1067152 - /aries/trunk/application/application-itests/src/test/java/org/apache/aries/application/runtime/itests/OBRResolverAdvancedTest.java
Date Fri, 04 Feb 2011 11:17:07 GMT
Author: ejiang
Date: Fri Feb  4 11:17:07 2011
New Revision: 1067152

URL: http://svn.apache.org/viewvc?rev=1067152&view=rev
Log:
ARIES-566: NPE when generating repository.xml for a wrong bundle location

Modified:
    aries/trunk/application/application-itests/src/test/java/org/apache/aries/application/runtime/itests/OBRResolverAdvancedTest.java

Modified: aries/trunk/application/application-itests/src/test/java/org/apache/aries/application/runtime/itests/OBRResolverAdvancedTest.java
URL: http://svn.apache.org/viewvc/aries/trunk/application/application-itests/src/test/java/org/apache/aries/application/runtime/itests/OBRResolverAdvancedTest.java?rev=1067152&r1=1067151&r2=1067152&view=diff
==============================================================================
--- aries/trunk/application/application-itests/src/test/java/org/apache/aries/application/runtime/itests/OBRResolverAdvancedTest.java
(original)
+++ aries/trunk/application/application-itests/src/test/java/org/apache/aries/application/runtime/itests/OBRResolverAdvancedTest.java
Fri Feb  4 11:17:07 2011
@@ -50,6 +50,7 @@ import org.apache.aries.application.mana
 import org.apache.aries.application.management.spi.repository.RepositoryGenerator;
 import org.apache.aries.application.modelling.ModelledResource;
 import org.apache.aries.application.modelling.ModelledResourceManager;
+import org.apache.aries.application.modelling.ModellerException;
 import org.apache.aries.application.utils.AppConstants;
 import org.apache.aries.application.utils.filesystem.FileSystem;
 import org.apache.aries.application.utils.manifest.ManifestHeaderProcessor;
@@ -261,6 +262,13 @@ public class OBRResolverAdvancedTest ext
     
   }
   
+  @Test(expected=ModellerException.class)
+  public void testModellerException() throws Exception
+  {
+    //aa.jar does not exist
+    generateOBRRepoXML(false, "aa.jar");
+  }
+  
   @Test
   public void testDemoApp() throws Exception 
   {



Mime
View raw message