Skip to content

Commit

Permalink
[#3227] fix(UT): tests run repeatedly (#3273)
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

Removing Inheritance

### Why are the changes needed?

Fix: #3227 

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

existing tests

Co-authored-by: mchades <[email protected]>
  • Loading branch information
jerryshao and mchades authored May 6, 2024
1 parent e501f5e commit 6bed32b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class TestFilesetNormalizeDispatcher extends TestFilesetOperationDispatcher {
public class TestFilesetNormalizeDispatcher extends TestOperationDispatcher {
private static FilesetNormalizeDispatcher filesetNormalizeDispatcher;
private static SchemaNormalizeDispatcher schemaNormalizeDispatcher;

@BeforeAll
public static void initialize() throws IOException {
TestFilesetOperationDispatcher.initialize();
filesetNormalizeDispatcher = new FilesetNormalizeDispatcher(filesetOperationDispatcher);
schemaNormalizeDispatcher = new SchemaNormalizeDispatcher(schemaOperationDispatcher);
filesetNormalizeDispatcher =
new FilesetNormalizeDispatcher(TestFilesetOperationDispatcher.filesetOperationDispatcher);
schemaNormalizeDispatcher =
new SchemaNormalizeDispatcher(TestFilesetOperationDispatcher.schemaOperationDispatcher);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class TestSchemaNormalizeDispatcher extends TestSchemaOperationDispatcher {
public class TestSchemaNormalizeDispatcher extends TestOperationDispatcher {
private static SchemaNormalizeDispatcher schemaNormalizeDispatcher;

@BeforeAll
public static void initialize() throws IOException {
TestSchemaOperationDispatcher.initialize();
schemaNormalizeDispatcher = new SchemaNormalizeDispatcher(dispatcher);
schemaNormalizeDispatcher =
new SchemaNormalizeDispatcher(TestSchemaOperationDispatcher.dispatcher);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class TestTableNormalizeDispatcher extends TestTableOperationDispatcher {
public class TestTableNormalizeDispatcher extends TestOperationDispatcher {
private static TableNormalizeDispatcher tableNormalizeDispatcher;
private static SchemaNormalizeDispatcher schemaNormalizeDispatcher;

@BeforeAll
public static void initialize() throws IOException {
TestTableOperationDispatcher.initialize();
tableNormalizeDispatcher = new TableNormalizeDispatcher(tableOperationDispatcher);
schemaNormalizeDispatcher = new SchemaNormalizeDispatcher(schemaOperationDispatcher);
tableNormalizeDispatcher =
new TableNormalizeDispatcher(TestTableOperationDispatcher.tableOperationDispatcher);
schemaNormalizeDispatcher =
new SchemaNormalizeDispatcher(TestTableOperationDispatcher.schemaOperationDispatcher);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class TestTopicNormalizeDispatcher extends TestTopicOperationDispatcher {
public class TestTopicNormalizeDispatcher extends TestOperationDispatcher {
private static TopicNormalizeDispatcher topicNormalizeDispatcher;
private static SchemaNormalizeDispatcher schemaNormalizeDispatcher;

@BeforeAll
public static void initialize() throws IOException {
TestTopicOperationDispatcher.initialize();
schemaNormalizeDispatcher = new SchemaNormalizeDispatcher(schemaOperationDispatcher);
topicNormalizeDispatcher = new TopicNormalizeDispatcher(topicOperationDispatcher);
schemaNormalizeDispatcher =
new SchemaNormalizeDispatcher(TestTopicOperationDispatcher.schemaOperationDispatcher);
topicNormalizeDispatcher =
new TopicNormalizeDispatcher(TestTopicOperationDispatcher.topicOperationDispatcher);
}

@Test
Expand Down

0 comments on commit 6bed32b

Please sign in to comment.