public LegacyNamingStrategyDelegator() { this( EJB3NamingStrategy.INSTANCE ); }
public MetadataSources(ServiceRegistry serviceRegistry) { this( serviceRegistry, EJB3DTDEntityResolver.INSTANCE, EJB3NamingStrategy.INSTANCE ); }
@Test public void testSuccessGetResultSetStatementEJB3NamingStrategyJava() { interpretedClass = InterpretedClassFactory.getInterpretedClass(ExampleModel.class); resultSetStatement = new ResultSetStatement(interpretedClass, new EJB3NamingStrategy()); assertEquals(Results.resultSetStringEJB3NamingStrategy, resultSetStatement.getStatement()); }
@Test public void testSuccessGetResultSetStatementEJB3NamingStrategyClass() { interpretedClass = InterpretedClassFactory.getInterpretedClass(getJavaClass()); resultSetStatement = new ResultSetStatement(interpretedClass, new EJB3NamingStrategy()); assertEquals(Results.resultSetStringEJB3NamingStrategy, resultSetStatement.getStatement()); }
@Test public void testSuccessGetStatementEJB3NamingStrategyJava() { interpretedClass = InterpretedClassFactory.getInterpretedClass(ExampleModel.class); statement = new UpdateSQLStatement(interpretedClass, new EJB3NamingStrategy()); assertEquals(Results.updateSQLStatementStringEJB3NamingStrategy, statement.getStatement()); }
@Test public void testSuccessGetStatementEJB3NamingStrategyClass() { interpretedClass = InterpretedClassFactory.getInterpretedClass(getJavaClass()); statement = new UpdateSQLStatement(interpretedClass, new EJB3NamingStrategy()); assertEquals(Results.updateSQLStatementStringEJB3NamingStrategy, statement.getStatement()); }
@Test public void testSuccessGetStatementEJB3NamingStrategyJava() { interpretedClass = InterpretedClassFactory.getInterpretedClass(ExampleModel.class); statement = new InsertSQLStatement(interpretedClass, new EJB3NamingStrategy()); assertEquals(Results.insertSQLStatementStringEJB3NamingStrategy, statement.getStatement()); }
@Test public void testSuccessGetStatementEJB3NamingStrategyClass() { interpretedClass = InterpretedClassFactory.getInterpretedClass(getJavaClass()); statement = new InsertSQLStatement(interpretedClass, new EJB3NamingStrategy()); assertEquals(Results.insertSQLStatementStringEJB3NamingStrategy, statement.getStatement()); }
@Test public void testSuccessGetStatementEJB3NamingStrategyJava() { interpretedClass = InterpretedClassFactory.getInterpretedClass(ExampleModel.class); statement = new SelectSQLStatement(interpretedClass, new EJB3NamingStrategy()); assertEquals(Results.selectSQLStatementStringEJB3NamingStrategy, statement.getStatement()); }
@Test public void testSuccessGetStatementEJB3NamingStrategyClass() { interpretedClass = InterpretedClassFactory.getInterpretedClass(getJavaClass()); statement = new SelectSQLStatement(interpretedClass, new EJB3NamingStrategy()); assertEquals(Results.selectSQLStatementStringEJB3NamingStrategy, statement.getStatement()); }