Skip to content

Commit

Permalink
Move test to correct package
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Aug 30, 2023
1 parent f6505bd commit aa8fa63
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import com.exasol.exasoltestsetup.ExasolTestSetupFactory;
import com.exasol.exasoltestsetup.ExasolTestSetupFactory.DispatchMode;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
package com.exasol.exasoltestsetup;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import com.exasol.exasoltestsetup.ExasolTestSetupFactory.DispatchMode;

/**
* Unit test for the test setup factory.
* <p>
* Note that this test only checks the construction of the factory itself. Since the method
* {@link ExasolTestSetupFactory#getTestSetup()} automatically spins up a real test environment, the corresponding
* test is an integration test that you can find in {@code ExasolTestSetupFactoryIT}.
* {@link ExasolTestSetupFactory#getTestSetup()} automatically spins up a real test environment, the corresponding test
* is an integration test that you can find in {@code ExasolTestSetupFactoryIT}.
* </p>
*/
class ExasolTestSetupFactoryTest {
Expand Down Expand Up @@ -46,7 +49,7 @@ void testForcedStandaloneModeThrowsExceptionIfConfigFileIsMissing(@TempDir final
void testForcedStandaloneModeThrowsExceptionIfConfigFileIsNull() {
final IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
() -> new ExasolTestSetupFactory(null, DispatchMode.STANDALONE));
assertThat(exception.getMessage(), containsString("configuration file parameter must not be NULL "
+ "for a for a standalone test setup does not exist"));
assertThat(exception.getMessage(), containsString(
"configuration file parameter must not be NULL " + "for a for a standalone test setup does not exist"));
}
}

0 comments on commit aa8fa63

Please sign in to comment.