Skip to content

Commit 21d9b8f

Browse files
matiwinnetouMateusz Czeladka
authored andcommitted
chore: test fixes
1 parent 98a727c commit 21d9b8f

File tree

18 files changed

+47
-47
lines changed

18 files changed

+47
-47
lines changed

api/src/test/java/org/cardanofoundation/rosetta/api/block/model/repository/TxRepositoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public class TxRepositoryTest extends IntegrationTest {
2424
private TxRepository txRepository;
2525

2626
@Test
27-
@Sql(scripts = "classpath:/testData//sql/tx-repository-test-init.sql", executionPhase = BEFORE_TEST_METHOD)
28-
@Sql(scripts = "classpath:/testData//sql/tx-repository-test-cleanup.sql", executionPhase = AFTER_TEST_METHOD)
27+
@Sql(scripts = "classpath:/testdata//sql/tx-repository-test-init.sql", executionPhase = BEFORE_TEST_METHOD)
28+
@Sql(scripts = "classpath:/testdata//sql/tx-repository-test-cleanup.sql", executionPhase = AFTER_TEST_METHOD)
2929
public void testSearchTxnEntitiesOR_NoDuplicates() {
3030
Slice<TxnEntity> results = txRepository.searchTxnEntitiesOR(
3131
null, null, null, null, Pageable.unpaged());

api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/CombineApiTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CombineApiTest extends IntegrationTest {
3232
@RepeatedTest(10)
3333
void combineWithMetadataTest() throws IOException {
3434
ConstructionCombineRequest combineRequest = getCombineRequest(
35-
"testData//construction/combine/combine_with_metadata.json");
35+
"testdata/construction/combine/combine_with_metadata.json");
3636

3737
ConstructionCombineResponse constructionCombineResponse =
3838
constructionApiService.constructionCombineService(combineRequest);
@@ -45,7 +45,7 @@ void combineWithMetadataTest() throws IOException {
4545
@RepeatedTest(10)
4646
void combineWithByronAddressTest() throws IOException {
4747
ConstructionCombineRequest combineRequest = getCombineRequest(
48-
"testData//construction/combine/combine_with_byron_addresses.json");
48+
"testdata/construction/combine/combine_with_byron_addresses.json");
4949

5050
ConstructionCombineResponse constructionCombineResponse =
5151
constructionApiService.constructionCombineService(combineRequest);
@@ -58,7 +58,7 @@ void combineWithByronAddressTest() throws IOException {
5858
@Test
5959
void combineWithInvalidSignatureTest() throws IOException {
6060
ConstructionCombineRequest combineRequest = getCombineRequest(
61-
"testData//construction/combine/combine_with_invalid_transaction.json");
61+
"testdata/construction/combine/combine_with_invalid_transaction.json");
6262

6363
ApiException actualException = assertThrows(ApiException.class, () ->
6464
constructionApiService.constructionCombineService(combineRequest));
@@ -69,7 +69,7 @@ void combineWithInvalidSignatureTest() throws IOException {
6969
@RepeatedTest(10)
7070
void combineWithByronAddressMissingChaincodeTest() throws IOException {
7171
ConstructionCombineRequest combineRequest = getCombineRequest(
72-
"testData//construction/combine/combine_with_byron_addresses_missing_chaincode.json");
72+
"testdata/construction/combine/combine_with_byron_addresses_missing_chaincode.json");
7373

7474
ApiException actualException = assertThrows(ApiException.class, () ->
7575
constructionApiService.constructionCombineService(combineRequest));

api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/DeriveApiTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private ConstructionDeriveRequest getDeriveRequest(String fileName) throws IOExc
3232
@Test
3333
void deriveAddressTest() throws IOException {
3434
ConstructionDeriveRequest deriveRequest = getDeriveRequest(
35-
"testData//construction/derive/derive_request.json");
35+
"testdata/construction/derive/derive_request.json");
3636
ConstructionDeriveResponse constructionDeriveResponse = constructionApiService.constructionDeriveService(
3737
deriveRequest);
3838

@@ -43,7 +43,7 @@ void deriveAddressTest() throws IOException {
4343
@Test
4444
void deriveAddressTestWithInvalidNetworkConfigurationTest() throws IOException {
4545
ConstructionDeriveRequest deriveRequest = getDeriveRequest(
46-
"testData//construction/derive/derive_request.json");
46+
"testdata/construction/derive/derive_request.json");
4747
deriveRequest.setNetworkIdentifier(new NetworkIdentifier());
4848
ApiException exception = assertThrows(ApiException. class,
4949
() -> constructionApiService.constructionDeriveService(

api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/HashApiTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private ConstructionHashRequest getHashRequest(String fileName) throws IOExcepti
2929
@Test
3030
void hashTest() throws IOException {
3131
ConstructionHashRequest hashRequest = getHashRequest(
32-
"testData//construction/hash/hash_request.json");
32+
"testdata/construction/hash/hash_request.json");
3333
TransactionIdentifierResponse transactionIdentifierResponse = constructionApiService.constructionHashService(
3434
hashRequest);
3535

api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/MetadataApiTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class MetadataApiTest extends IntegrationTest {
2525

2626
private ConstructionMetadataRequest getCombineRequest() throws IOException {
2727
File file = new File(this.getClass().getClassLoader()
28-
.getResource("testData//construction/metadata/metadata_request.json")
28+
.getResource("testdata/construction/metadata/metadata_request.json")
2929
.getFile());
3030
ObjectMapper mapper = new ObjectMapper();
3131
return mapper.readValue(file, ConstructionMetadataRequest.class);

api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/ParseApiTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private ConstructionParseRequest getParseRequest(String fileName) throws IOExcep
3030
@Test
3131
void depositParseTest() throws IOException {
3232
ConstructionParseRequest parseRequest = getParseRequest(
33-
"testData//construction/parse/deposit_request.json");
33+
"testdata/construction/parse/deposit_request.json");
3434
ConstructionParseResponse parseResponse = constructionApiService.constructionParseService(
3535
parseRequest);
3636

@@ -44,7 +44,7 @@ void depositParseTest() throws IOException {
4444
@Test
4545
void refundParseTest() throws IOException {
4646
ConstructionParseRequest parseRequest = getParseRequest(
47-
"testData//construction/parse/refund_request.json");
47+
"testdata/construction/parse/refund_request.json");
4848
ConstructionParseResponse parseResponse = constructionApiService.constructionParseService(
4949
parseRequest);
5050

@@ -58,7 +58,7 @@ void refundParseTest() throws IOException {
5858
@Test
5959
void signedMultiAssetTest() throws IOException {
6060
ConstructionParseRequest parseRequest = getParseRequest(
61-
"testData//construction/parse/signed_multiasset_request.json");
61+
"testdata/construction/parse/signed_multiasset_request.json");
6262
ConstructionParseResponse parseResponse = constructionApiService.constructionParseService(
6363
parseRequest);
6464

0 commit comments

Comments
 (0)