Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bvsharp committed Dec 10, 2024
1 parent faa0b81 commit a3d98b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
9 changes: 4 additions & 5 deletions src/test/java/org/folio/fqm/repository/IdStreamerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@
import org.jooq.SelectSelectStep;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;

//@RunWith(MockitoJUnitRunner.class)
@ExtendWith(MockitoExtension.class)
@RunWith(MockitoJUnitRunner.class)
@ActiveProfiles("db-test")
@SpringBootTest
class IdStreamerTest {
Expand Down Expand Up @@ -239,7 +238,7 @@ void shouldThrowExceptionWhenMaxQuerySizeExceeded() {

@Test
void shouldCancelQuery() {
// Horrible mocks because our test DSL doesn't behave nicely in separate threads
// This test uses a mocked DSLContext because our test DSLContext doesn't behave nicely in separate threads
DSLContext mockJooqContext = mock(DSLContext.class);
SelectSelectStep mockSelectStep = mock(SelectSelectStep.class);
SelectJoinStep mockJoinStep = mock(SelectJoinStep.class);
Expand Down
18 changes: 6 additions & 12 deletions src/test/resources/entity-types/entity_type-01.json5
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
id: '0cb79a4c-f7eb-4941-a104-745224ae0291',
name: 'entity_type_01',
labelAlias: 'entity_type_01',
name: 'entity_type-01',
labelAlias: 'entity_type-01',
private: false,
columns: [
{
Expand All @@ -13,15 +13,15 @@
visibleByDefault: false,
},
{
name: 'column_01',
name: 'column-01',
dataType: {
dataType: 'stringType',
dataType: 'rangedUUIDType',
},
labelAlias: 'Column 1',
visibleByDefault: false,
},
{
name: 'column_02',
name: 'column-02',
dataType: {
dataType: 'stringType',
},
Expand All @@ -31,14 +31,8 @@
],
defaultSort: [
{
columnName: 'column_01',
columnName: 'column-01',
direction: 'ASC',
},
],
sources: [
{
type: 'db',
alias: 'source_1',
}
]
}

0 comments on commit a3d98b1

Please sign in to comment.