455174 jetty-plus JNDI tests should use unique JNDI paths
This commit is contained in:
parent
fc2b6f0f74
commit
331d2a278d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue