Package org.jmock

Examples of org.jmock.Mockery.assertIsSatisfied()


        });

        AppModule module = new TestFixture().getAppModule("single-session-bean.xml", null);
        new SessionBeanInterfaceModifier(facade).convert(module);

        context.assertIsSatisfied();
    }

    public void testShouldRemoveEJBLocalObjectInterfaceAndAddLocalInterface() throws Exception {
        Mockery context = new Mockery();
View Full Code Here


        });

        AppModule module = new TestFixture().getAppModule("single-session-bean-local.xml", null);
        new SessionBeanInterfaceModifier(facade).convert(module);

        context.assertIsSatisfied();
    }

    public void testShouldOnlyRemoveSessionBeanInterfaceIfNoRemoteOrLocalInterfaceSopecified() throws Exception {
        Mockery context = new Mockery();
View Full Code Here

        });

        AppModule module = new TestFixture().getAppModule("badsession-ejb-jar.xml", null);
        new SessionBeanInterfaceModifier(facade).convert(module);

        context.assertIsSatisfied();
    }

    public void testShouldNotThrowExceptionOnNullEjbClassName() throws Exception {
        Mockery context = new Mockery();
View Full Code Here

        final IJDTFacade facade = context.mock(IJDTFacade.class);

        AppModule module = new TestFixture().getAppModule("emptysession-ejb-jar.xml", null);
        new SessionBeanInterfaceModifier(facade).convert(module);

        context.assertIsSatisfied();
    }
}
View Full Code Here

      }
    });
   
    new EntityBeanConverter(jdtFacade).addRelationshipAnnotations(appModule);
   
    context.assertIsSatisfied();
  }
 
  public void testShouldNotThrowExceptionIfTableNameIsMissing() throws Exception {
    Mockery context = new Mockery();
    IJDTFacade jdtFacade = context.mock(IJDTFacade.class);
View Full Code Here

        });

        AppModule module = new TestFixture().getAppModule("basicentity-ejb-jar.xml", null);
        new EntityBeanPojoConverter(facade).convert(module);

        context.assertIsSatisfied();
    }

    public void testShouldConvertEntityWithOneToManyToPojo() throws Exception {
        Mockery context = new Mockery();
        final Sequence sequence = context.sequence("sequence");
View Full Code Here

        });

        AppModule module = new TestFixture().getAppModule("onetomany-ejb-jar.xml", null);
        new EntityBeanPojoConverter(facade).convert(module);

        context.assertIsSatisfied();
    }

    public void testShouldConvertEntityWithOneToOneToPojo() throws Exception {
        Mockery context = new Mockery();
        final Sequence sequence = context.sequence("sequence");
View Full Code Here

        });

        AppModule module = new TestFixture().getAppModule("onetoone-ejb-jar.xml", null);
        new EntityBeanPojoConverter(facade).convert(module);

        context.assertIsSatisfied();
    }

    public void testShouldConvertEntityWithManyToManyToPojo() throws Exception {
        Mockery context = new Mockery();
        final Sequence sequence = context.sequence("sequence");
View Full Code Here

        });

        AppModule module = new TestFixture().getAppModule("manytomany-ejb-jar.xml", null);
        new EntityBeanPojoConverter(facade).convert(module);

        context.assertIsSatisfied();
    }

    public void testShouldConvertEntityWithManyToOneToPojo() throws Exception {
        Mockery context = new Mockery();
        final Sequence sequence = context.sequence("sequence");
View Full Code Here

        });

        AppModule module = new TestFixture().getAppModule("manytoone-ejb-jar.xml", null);
        new EntityBeanPojoConverter(facade).convert(module);

        context.assertIsSatisfied();
    }

    public void testShouldConvertEntityWithBadRelationshipToPojo() throws Exception {
        Mockery context = new Mockery();
        final Sequence sequence = context.sequence("sequence");
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.