timothyjward commented on code in PR #403:
URL: https://github.com/apache/felix-dev/pull/403#discussion_r2036977892


##########
framework/src/test/java/org/apache/felix/framework/BundleWiringImplTest.java:
##########
@@ -506,13 +478,13 @@ public void testAccessorSubsequentLoadFailed() throws 
Exception
         
when(bundleWiring.getBundle().getFramework()).thenReturn(mockFramework);
 
         BundleClassLoader bundleClassLoader = createBundleClassLoader(
-                BundleClassLoader.class, bundleWiring);
-        assertNotNull(bundleClassLoader);
+                BundleClassLoader.class, bundleWiring);
+        assertThat(bundleClassLoader).isNotNull();
 
         //first attempt to populate the cache
         try {
-            bundleClassLoader.loadClass(classToBeLoaded, true);
-            fail();
+            bundleClassLoader.loadClass(classToBeLoaded, true);
+            fail("");

Review Comment:
   ```suggestion
               fail("Class loading should fail");
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@felix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to