XADataSourceDefinitionFactory { public static XADataSourceDefinition getXADataSourceDefinition(final DatabaseType databaseType) { return XA_DATA_SOURCE_DEFINITIONS.get(databaseType); }  static XADataSourceDefinition getXADataSourceDefinition(final DatabaseType databaseType);  }
@Test public void assertCreateXAPropertiesForH2() { assertThat(XADataSourceDefinitionFactory.getXADataSourceDefinition(DatabaseTypes.getActualDatabaseType("H2")), instanceOf(H2XADataSourceDefinition.class)); }
@Test public void assertCreateXAPropertiesForMySQL() { assertThat(XADataSourceDefinitionFactory.getXADataSourceDefinition(DatabaseTypes.getActualDatabaseType("MySQL")), instanceOf(MySQLXADataSourceDefinition.class)); }
@Test public void assertCreateXAPropertiesForMariaDB() { assertThat(XADataSourceDefinitionFactory.getXADataSourceDefinition(DatabaseTypes.getActualDatabaseType("MariaDB")), instanceOf(MariaDBXADataSourceDefinition.class)); }
@Test public void assertCreateXAPropertiesForPostgreSQL() { assertThat(XADataSourceDefinitionFactory.getXADataSourceDefinition(DatabaseTypes.getActualDatabaseType("PostgreSQL")), instanceOf(PostgreSQLXADataSourceDefinition.class)); }
@Test public void assertCreateXAPropertiesForOracle() { assertThat(XADataSourceDefinitionFactory.getXADataSourceDefinition(DatabaseTypes.getActualDatabaseType("Oracle")), instanceOf(OracleXADataSourceDefinition.class)); }
@Test public void assertCreateXAPropertiesForSQLServer() { assertThat(XADataSourceDefinitionFactory.getXADataSourceDefinition(DatabaseTypes.getActualDatabaseType("SQLServer")), instanceOf(SQLServerXADataSourceDefinition.class)); }