Package test.m2.repositoryimpl

Examples of test.m2.repositoryimpl.XRepositoryBean


      Assert.assertEquals("b", b.b(getServiceContext()));
    }

  @Override
  public void testX() throws Exception {
    X x = b.x(getServiceContext(), "name");
      Assert.assertEquals("x", x.getName());
  }
View Full Code Here


  }

  @Override
  public void testSave() throws Exception {
    int before = super.countRowsInTable(B.class);
    X x = new X("test");
    b.save(getServiceContext(), x);
    int after = super.countRowsInTable(B.class);
      Assert.assertEquals(before + 1, after);
  }
View Full Code Here

        ao.setKeyPropertyValues(name);

        ao.execute();

        if (ao.getResult() == null) {
            throw new XNotFoundException("No X found with name: " + name);
        }

        return ao.getResult();

    }
View Full Code Here

        try {
            if (jndiName == null) {
                jndiName = defaultJndiName();
            }
            InitialContext ctx = createInitialContext();
            B ejb = (test.m2.serviceapi.B) ctx.lookup(jndiName);

            // don't cache the remote proxy instance, since it might be stale and the server
            // of the proxy might have crashed.
            if (!useRemoteLookup()) {
                setService(ejb);
View Full Code Here

TOP

Related Classes of test.m2.repositoryimpl.XRepositoryBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.