Examples of IJDTFacade


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

  }

  public void testShouldGenerateMethodInterceptorAnnotations() 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], Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
View Full Code Here

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

  }

  public void testShouldGenerateExcludeDefaultInterceptorAnnotations() 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

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

  }

  public void testShouldGenerateDefaultExcludeMethodInterceptorAnnotations() 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], ExcludeDefaultInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
View Full Code Here

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

  }

  public void testShouldGenerateExcludeClassInterceptorAnnotations() 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

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

  }

  public void testShouldGenerateClassExcludeMethodInterceptorAnnotations() 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], ExcludeClassInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
View Full Code Here

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

  }
 
  public void testShouldGenerateRemoteAnnotations() 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", Stateful.class, null); //$NON-NLS-1$
View Full Code Here

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

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

    final Map<String,Object> expectedMap = new HashMap<String, Object>();
    expectedMap.put("destination", "TestQueue"); //$NON-NLS-1$ //$NON-NLS-2$
    expectedMap.put("destinationType", "javax.jms.Queue"); //$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.