Skip to main content

Questions tagged [dbsetup]

DbSetup is a free, open-source Java API that helps you setup your database data to execute DAO/Repository unit tests.

dbsetup
-1 votes
1 answer
39 views

In my Spring setup with DbSetUp + H2 database, queries with LIKE are not working

As the title suggests, what I want to do is test a class with database access in a Spring Boot application. In the target class, I am using Specification as follows: TestSpecification specification = ...
harunaga's user avatar
  • 355
2 votes
0 answers
210 views

Command 'db:setup' not recognized"

When I try the command, I get below output, also there is an error at the bottom saying Error: Command 'db:setup' not recognized: /usr/local/rvm/gems/ruby-3.0.0/gems/bundler-1.15.3/lib/bundler/...
Daigham's user avatar
  • 41
0 votes
1 answer
348 views

Configuration DbSetup with Kotlin and Spring Boot

I'm developing Kotlin application with gradle Java 11 Spring Boot 2.3.6.RELEASE DbSetup-kotlin:2.1.0 testcontainers:postgresql 1.15.0 After following this guide DbSetup Kotlin I'm facing problem ...
ad3luc's user avatar
  • 302
1 vote
2 answers
329 views

Spring data doesn't increment after DBsetup

I have such question. I'm using DBsetup for spring boot tests and postgresql database. And I'm using DBsetup to set user, but when I'm trying to set another user by spring data I have the next ...
Daimon's user avatar
  • 365
0 votes
1 answer
3k views

@DataJpaTest autowire dataSource

I'm using dbsetup framework to set up my database. I'm trying to test repository level (I'm using Spring data) using annotation @DataJpaTest. To set up a database using "dbsetup" I need to autowire ...
Daimon's user avatar
  • 365
15 votes
4 answers
14k views

How to insert UUID into RAW(16) column

I have the RAW(16) PK column in Oracle, and trying to insert into it using JDBC: PreparedStatement stmt = connection.prepareStatement("insert into COUNTRY (id, state, version, code, name, ...
Serge Iroshnikov's user avatar
0 votes
1 answer
220 views

DbSetup : multiple SQL Update

How do I add multiple update sql statements? In this example for those with ID 2,3,4,5 public static final Operation INSERT_LANGUAGE_DATA = Operations.sequenceOf(Operations.insertInto("LANGUAGE")...
theresa's user avatar
  • 11
0 votes
0 answers
197 views

DBSetup : SQL support

I am trying to use DBSetup for my testing. I was able to make it run with simple Inserts: public static final Operation INSERT_CURRENCY_DATA = Insert.into("CURRENCY") .columns("ID", "...
theresa's user avatar
  • 11
0 votes
1 answer
241 views

Rollback changes in test after manual interaction with the datasource?

I'm using dbsetup for my db tests. The problem is I can't manage to get data rolled back after each test using the aproach which have always worked which is annotating the test case (or method) with @...
kboom's user avatar
  • 2,329
2 votes
1 answer
579 views

DBSetup - How to do a select statement

I was looking in to DBUnit for sometime until a nice chap on here pointed me to some application he made named DBSetup that was more light weight and easy. I must admit 1) I have found it useful so ...
Biscuit128's user avatar
  • 5,338
0 votes
1 answer
686 views

DbSetup simple example, SQLException occurs

There's very little information about DbSetup so I couldn't find an answer to this question anywhere else. I need to test Data Access Layer and decided to use DbSetup for it. I tried to use DbSetup ...
Green Fireman's user avatar