Skip to content

Commit

Permalink
Merge branch 'feature/add-asserts-to-test' into feature/use-nakadi-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ePaul committed Dec 19, 2018
2 parents 1c44b39 + 2f331d6 commit 3b0fc6a
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,25 @@
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT
)
public class ApplicationWithMockClientIT {

@LocalManagementPort
private int localManagementPort;

@ClassRule
public static final EnvironmentVariables environmentVariables
= new EnvironmentVariables();

@LocalManagementPort
private int localManagementPort;
@BeforeClass
public static void fakeCredentialsDir() {
environmentVariables.set("CREDENTIALS_DIR", new File("src/main/test/tokens").getAbsolutePath());
}

@Autowired
private MockNakadiPublishingClient mockClient;

@Autowired
private EventTransmitter eventTransmitter;

@BeforeClass
public static void fakeCredentialsDir() {
environmentVariables.set("CREDENTIALS_DIR", new File("src/main/test/tokens").getAbsolutePath());
}

@Before
@After
public void cleanUpMock() {
Expand Down

0 comments on commit 3b0fc6a

Please sign in to comment.