I am doing the same and my tests works!
Here is a piece of my code:
        protected void setUp() {
        try {
            InitialContext ctx = new InitialContext();
            home = (CategoryLocalHome)ctx.lookup(CategoryLocalHome.JNDI_NAME);
        } catch (Exception e) {
            e.printStackTrace();
            logger.error(" got exception "+e.getMessage());
            assertEquals("no errors", e.getMessage());
        }
        }
        
    /**
        * Test create()
        */
    public void beginCreateCategory(WebRequest request) {
        doAuthentication(request, "analyst", "analyst");
    }

    public void testCreateCategory() {
        try {
            CategoryModel model = new CategoryModel("New category");
            model.setParentId("/");
            CategoryLocal cat = home.create(model);
        } catch (Exception e) {
            e.printStackTrace();
            logger.error(" got exception "+e.getMessage());
            assertEquals("no errors", e.getMessage());
        }
    }

Is it the same as yours? It works.
Alexander


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to