0 Replies Latest reply on Apr 29, 2002 5:00 PM by kenryu

    CMP example

    kenryu

      hi;

      I'm trying to deploy the CMP example from the documentation. I'm testing the customer CMP bean which has one to one relationship with User and has a remote method: getUser() and setUser(User usr);
      I can use the setUser() method but I always have null
      pointer exception whenever I tried to call getUser() method and then call User method (getUserId() or other User method). When I look the other similiar example (ManyToOneUnitTest.java class), I found out that the code example doesn't call the getUserId or other User method after getUser() is called. Why is that? is it because this method is not intended to be used this way?
      also the example use isIdentical() and assertTrue(). Where is this method is defined? is it standard method?
      Please reply anyone out there.


      ^_^
      Thank's