diff --git a/jetty-plus/src/test/java/org/eclipse/jetty/plus/jndi/TestNamingEntries.java b/jetty-plus/src/test/java/org/eclipse/jetty/plus/jndi/TestNamingEntries.java index 0ed095012ca..e1deb8223f4 100644 --- a/jetty-plus/src/test/java/org/eclipse/jetty/plus/jndi/TestNamingEntries.java +++ b/jetty-plus/src/test/java/org/eclipse/jetty/plus/jndi/TestNamingEntries.java @@ -246,14 +246,14 @@ public class TestNamingEntries { ScopeA scope = new ScopeA(); InitialContext icontext = new InitialContext(); - Link link = new Link ("resourceA", "resourceB"); - NamingEntry ne = NamingEntryUtil.lookupNamingEntry(null, "resourceA"); + Link link = new Link ("linked-resourceA", "resourceB"); + NamingEntry ne = NamingEntryUtil.lookupNamingEntry(null, "linked-resourceA"); assertNotNull(ne); assertTrue(ne instanceof Link); - assertEquals(icontext.lookup("resourceA"), "resourceB"); + assertEquals(icontext.lookup("linked-resourceA"), "resourceB"); - link = new Link (scope, "jdbc/resourceX", "jdbc/resourceY"); - ne = NamingEntryUtil.lookupNamingEntry(scope, "jdbc/resourceX"); + link = new Link (scope, "jdbc/linked-resourceX", "jdbc/linked-resourceY"); + ne = NamingEntryUtil.lookupNamingEntry(scope, "jdbc/linked-resourceX"); assertNotNull(ne); assertTrue(ne instanceof Link); }