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


##########
framework/src/test/java/org/apache/felix/framework/BundleWiringImplTest.java:
##########
@@ -465,12 +437,12 @@ public void testAccessorFirstLoadFailed() throws Exception
         
when(bundleWiring.getBundle().getFramework()).thenReturn(mockFramework);
 
         BundleClassLoader bundleClassLoader = createBundleClassLoader(
-                BundleClassLoader.class, bundleWiring);
-        assertNotNull(bundleClassLoader);
+                BundleClassLoader.class, bundleWiring);
+        assertThat(bundleClassLoader).isNotNull();
 
         try {
-            bundleClassLoader.loadClass(classToBeLoaded, true);
-            fail();
+            bundleClassLoader.loadClass(classToBeLoaded, true);
+            fail("");

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



-- 
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