From: Erik Brakkee Date: Tue, 11 May 2010 07:04:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.7~467 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=f832de172c381de15d4e95e4b4f77c834a2457df;p=utils --- diff --git a/TODO.txt b/TODO.txt index 9e607d14..ac2f1ab1 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,16 +1,14 @@ -* separate security into product and test where test depends on JPA 2.0 implementations - and test is not deployed to the central maven repo. -* move codestyle to separate svn project. +* DatabaseUtils: deletion of tables must be more generic + First drop all constraints then drop all tables. + Or use JPA to drop the tables but that is a short-term solution +* Get rid of use of detached objects in security + - Use only basic types in UserAdministration + - Put API in separate package * add cdi subproject -* refactor: Create jpa subproject with separate subprojects for api, hibernate, - toplink-essentials and eclipselink - Each subproject contains the required repo settings * update mythtv project for java ee 6 -* add schemagen for user management part. * reimplement photos application using wicket -* JPA 2.0 implementation for security. * change tracking for all projects with changes plugin @@ -18,5 +16,5 @@ * maven sites for each subproject accessible through wamblee.org * overview pages for separate areas -* create passwords application +* create user mgt application diff --git a/test/enterprise/src/test/java/org/wamblee/support/jndi/StubInitiaContextFactoryTest.java b/test/enterprise/src/test/java/org/wamblee/support/jndi/StubInitiaContextFactoryTest.java index b4745bd1..f6a57810 100644 --- a/test/enterprise/src/test/java/org/wamblee/support/jndi/StubInitiaContextFactoryTest.java +++ b/test/enterprise/src/test/java/org/wamblee/support/jndi/StubInitiaContextFactoryTest.java @@ -15,15 +15,15 @@ */ package org.wamblee.support.jndi; -import static junit.framework.Assert.assertEquals; +import static junit.framework.Assert.*; import javax.naming.InitialContext; +import javax.naming.NameNotFoundException; import javax.naming.NamingException; import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.wamblee.support.jndi.StubInitialContextFactory; public class StubInitiaContextFactoryTest { @@ -52,4 +52,11 @@ public class StubInitiaContextFactoryTest { assertEquals("hallo", obj); } + @Test(expected = NameNotFoundException.class) + public void testLookupFails() throws Exception { + StubInitialContextFactory.register(); + + InitialContext ctx = new InitialContext(); + Object obj = ctx.lookup("a/b"); + } }