[ 
https://issues.apache.org/jira/browse/ISIS-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andi Huber resolved ISIS-1958.
------------------------------
    Resolution: Resolved

Sample usage, using a mariadb for tests:
  
{code:java}
public abstract class MyIntegTestAbstract extends IntegrationTestJupiter {

  public MyIntegTestAbstract() {
    super(new MyModule()
      .withAdditionalModules(...)
      .withConfigurationProperty(TranslationServicePo.KEY_PO_MODE, "disable")
      ...
      .withConfigurationProperties(databaseConfigForTest()) 
    );
  }
    
  private static Map<String, String> databaseConfigForTest() {
    Map<String, String> map = new HashMap<>();
      
    // for refernce see AppManifest.Util.withJavaxJdoRunInMemoryProperties(map)

    map.put(AppManifest.Util.ISIS_PERSISTOR_DATANUCLEUS_IMPL + 
"javax.jdo.option.ConnectionURL", "jdbc:mariadb://127.0.0.1/demo");
    map.put(AppManifest.Util.ISIS_PERSISTOR_DATANUCLEUS_IMPL + 
"javax.jdo.option.ConnectionDriverName", "org.mariadb.jdbc.MariaDbDataSource");
    map.put(AppManifest.Util.ISIS_PERSISTOR_DATANUCLEUS_IMPL + 
"javax.jdo.option.ConnectionUserName", "sven");
    map.put(AppManifest.Util.ISIS_PERSISTOR_DATANUCLEUS_IMPL + 
"javax.jdo.option.ConnectionPassword", "pass");
       
    return map;
  }
  
  ...
  
}
{code}

> Integration Tests: HSQL-DB is forced upon users
> -----------------------------------------------
>
>                 Key: ISIS-1958
>                 URL: https://issues.apache.org/jira/browse/ISIS-1958
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Andi Huber
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-M1
>
>
> As reported per user mailing list:
> https://lists.apache.org/thread.html/cc2966892bdd5723e0087dad3967d6bec858d00f0133cd6fb8310816@%3Cusers.isis.apache.org%3E



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to