Skip to content

Commit

Permalink
Reset instance properties before instance selector test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartinsanta committed Jan 30, 2024
1 parent c9606c2 commit d44878d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import es.urjc.etsii.grafo.io.InstanceManager;
import es.urjc.etsii.grafo.testutil.TestInstance;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.springframework.context.ApplicationEventPublisher;
Expand All @@ -21,6 +22,12 @@
import static org.junit.jupiter.api.Assertions.*;

class InstanceSelectorTest {

@BeforeAll
public static void resetProps(){
TestInstance.resetProperties();
}

private static Object tryParse(String s){
try {
return Double.parseDouble(s);
Expand Down

0 comments on commit d44878d

Please sign in to comment.