Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt committed Jan 6, 2024
1 parent 602e83e commit ceeb198
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class AnalyzerResultPersistenceService {

@Inject BadSmellRepository badSmellRepository;


void persistResults(CodeAnalyzerResult.Success success) {
logger.atInfo().log(
"Persisting %s results for project %s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.github.martinwitt.laughing_train.data.result.CodeAnalyzerResult;
import io.github.martinwitt.laughing_train.mining.api.AnalyzerRunRepository;
import io.github.martinwitt.laughing_train.mining.requests.StoreResults;
import io.quarkus.test.TestTransaction;
import io.quarkus.test.junit.QuarkusTest;
import jakarta.inject.Inject;
import org.instancio.Instancio;
Expand All @@ -18,6 +19,7 @@ class AnalyzerResultsPersistenceTest {
@Inject AnalyzerRunRepository analyzerRunRepository;

@Test
@TestTransaction
void persistResults() {
StoreResults storeResults =
new StoreResults(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
package io.github.martinwitt.laughing_train.persistence.impl;

import static org.assertj.core.api.Assertions.assertThat;

import io.github.martinwitt.laughing_train.domain.entity.RemoteProject;
import io.github.martinwitt.laughing_train.mining.api.AnalyzerRunRepository;
import io.quarkus.test.TestTransaction;
import io.quarkus.test.junit.QuarkusTest;
import jakarta.inject.Inject;
import java.util.List;
import org.instancio.Instancio;
import org.junit.jupiter.api.Test;

import java.util.List;

import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
class SqlProjectRepositoryTest {

@Inject SqlProjectRepository sqlProjectRepository;

@Inject AnalyzerRunRepository sqlAnalyzerRunRepository;

@Test
@TestTransaction
void insertProject() {
RemoteProject remoteProject = Instancio.create(RemoteProject.class);
sqlProjectRepository.save(remoteProject);
Expand Down

0 comments on commit ceeb198

Please sign in to comment.