2 Replies Latest reply on Mar 20, 2013 3:47 PM by Bartosz Majsak

    Error when running @ApplyScriptBefore

    Guilherme Furlaneto Newbie

      Hello, i'm trying run sql scripts before my arquillian tests but i get a error on dbunit.

       

      Caused by: org.dbunit.dataset.NoSuchTableException: Did not find table '1400x1401' in schema 'null'

          at org.dbunit.database.DatabaseTableMetaData.<init>(DatabaseTableMetaData.java:146)

          at org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:299)

          at org.dbunit.database.DatabaseTableIterator.getTableMetaData(DatabaseTableIterator.java:80)

          at org.dbunit.dataset.filter.AbstractTableFilter$FilterIterator.next(AbstractTableFilter.java:122)

          at org.dbunit.operation.DeleteAllOperation.execute(DeleteAllOperation.java:93)

          at org.dbunit.operation.TransactionOperation.execute(TransactionOperation.java:78)

          at org.jboss.arquillian.persistence.dbunit.cleanup.StrictCleanupStrategyExecutor.cleanupDatabase(StrictCleanupStrategyExecutor.java:43)

          ... 157 more

       

      In my source folder resources i have the file "script.sql" (with only a select)

       

      My method is annoted with @ApplyScriptBefore(value="script.sql")

       

      What i can to do?

       

      Thanks.