Skip to content

Commit

Permalink
disable ui tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjabrain1 committed Sep 7, 2024
1 parent e5a9dc4 commit e94f415
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import ninjabrainbot.model.domainmodel.IDomainModel;
import ninjabrainbot.model.domainmodel.IFundamentalComponent;
import ninjabrainbot.model.domainmodel.IInferredComponent;
import ninjabrainbot.model.domainmodel.SerializationException;

public class DetachedDomainModel implements IDomainModel {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void deserialize(ObjectInput objectInput) throws SerializationException {
if (deserializedFundamentalComponents.size() != fundamentalComponents.size())
throw new SerializationException("Expected there to be " + (fundamentalComponents.size()) + " deserialized objects, but got " + deserializedFundamentalComponents.size());

try{
try {
acquireWriteLock();
for (IFundamentalComponent<?, ?> fundamentalComponent : fundamentalComponents) {
String uniqueId = fundamentalComponent.uniqueId();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package ninjabrainbot.model.domainmodel;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public SerializationException(String message) {
super(message);
}

public SerializationException(String message, Throwable cause){
public SerializationException(String message, Throwable cause) {
super(message, cause);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
import ninjabrainbot.util.TestUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;

public class CalibrationIntegrationTests {

@DisabledIfEnvironmentVariable(named = "CI", matches = "true")
@Test
public void canOpenDialog() {
// Arrange
Expand All @@ -29,6 +31,7 @@ public void canOpenDialog() {
}
}

@DisabledIfEnvironmentVariable(named = "CI", matches = "true")
@Test
public void canOpenDialog_manualCalibration() {
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
import ninjabrainbot.util.TestUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;

public class ThemeEditorIntegrationTests {

@DisabledIfEnvironmentVariable(named = "CI", matches = "true")
@Test
public void canOpenDialog() {
// Arrange
Expand Down

0 comments on commit e94f415

Please sign in to comment.