Examples of IJDTFacade


Examples of org.apache.openejb.plugins.common.IJDTFacade

 
  protected Mockery context = new Mockery();
 
  public void testShouldAddTwoStatelessAnnotationsToSampleBeans() throws Exception {
    // setup
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    Converter[] converters = {
      new SessionBeanConverter(facade)
    };

    OpenEjbXmlConverter converter = new OpenEjbXmlConverter(converters);
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

    context.assertIsSatisfied();
  }
 
  public void testShouldAddTransactionManagementAttributes() throws Exception {
    // setup
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addClassAnnotation("test.TestBean", TransactionManagement.class, createNameValuePair("value", TransactionManagementType.BEAN)); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

  }
 
  public void testShouldGenerateMethodPermissionAnnotations() throws Exception {
    // setup
   
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], RolesAllowed.class, createNameValuePair("value", new String[] { "Admin" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

  }
 
  public void testShouldAddRolesAllowedAnnotationToClass() throws Exception {
    // setup
   
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addClassAnnotation("test.TestBean", RolesAllowed.class, createNameValuePair("value", new String[] { "Admin" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

  }
 
  public void testShouldAddPermitAllToMethod() throws Exception {
    // setup
   
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], PermitAll.class, null); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

  }
 
  public void testShouldAddPermitAllToClass() throws Exception {
    // setup
   
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addClassAnnotation("test.TestBean", PermitAll.class, null); //$NON-NLS-1$
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

  }
 
  public void testShouldAddDenyAllToMethod() throws Exception {
    // setup
   
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], DenyAll.class, null); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

  }
 
  public void testShouldGenerateRunAsAnnotation() throws Exception {
    // setup
   
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addClassAnnotation("test.TestBean", RunAs.class, createNameValuePair("value", "Administrator")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

  }
 
  public void testShouldGenerateDeclaredRolesAnnotations() throws Exception {
    // setup
   
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addClassAnnotation("test.TestBean", DeclareRoles.class, createNameValuePair("value", new String[] { "Admin" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
View Full Code Here

Examples of org.apache.openejb.plugins.common.IJDTFacade

  }
 
  public void testShouldGenerateInterceptorAnnotations() throws Exception {
    // setup
   
    final IJDTFacade facade = context.mock(IJDTFacade.class);
    SessionBeanConverter converter = new SessionBeanConverter(facade);

    // expectations
    context.checking(new Expectations(){{
      one(facade).addClassAnnotation("test.TestBean", Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.