Skip to content

Instantly share code, notes, and snippets.

@rodolfoliviero
Created September 19, 2011 19:13
Show Gist options
  • Save rodolfoliviero/1227309 to your computer and use it in GitHub Desktop.
Save rodolfoliviero/1227309 to your computer and use it in GitHub Desktop.
JStryker disable Referential Integrity
Coloca isso no @before. Criar uma classe que faz isso ai é só chamar no before de cada classe.
No After faz a mesma coisa.
Connection connection = ConnectionHelper.getConnection();
disableHsqldbDatabaseReferentialIntegrity(connection);
cleanInsert("dataset.xml", connection);
connection.close();
@JoseRibeiro
Copy link

Não precisa habilitar a integridade referencial depois do clean insert se você não vai mais usar a conexão.

@rodolfoliviero
Copy link
Author

atualizado...vlw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment