-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from gessnerfl/feature/33_version_in_ui
closes #33: version added to UI. All dependencies updated
- Loading branch information
Showing
27 changed files
with
363 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...est/java/de/gessnerfl/fakesmtp/config/FakeSmtpConfigurationPropertiesIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 14 additions & 17 deletions
31
...rfl/fakesmtp/config/FakeSmtpConfigurationPropertiesWithAuthenticationIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
package de.gessnerfl.fakesmtp.config; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.ActiveProfiles; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
import org.springframework.test.context.junit.jupiter.SpringExtension; | ||
|
||
import java.net.InetAddress; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNotNull; | ||
import static org.junit.Assert.assertNull; | ||
|
||
@ActiveProfiles({"integrationtest", "config_with_auth_integrationtest"}) | ||
@RunWith(SpringRunner.class) | ||
@ExtendWith(SpringExtension.class) | ||
@SpringBootTest | ||
public class FakeSmtpConfigurationPropertiesWithAuthenticationIntegrationTest { | ||
class FakeSmtpConfigurationPropertiesWithAuthenticationIntegrationTest { | ||
|
||
@Autowired | ||
private FakeSmtpConfigurationProperties sut; | ||
|
||
@Test | ||
public void shouldLoadConfigurationParameters() throws Exception { | ||
assertEquals(1234, sut.getPort().intValue()); | ||
assertEquals(InetAddress.getByName("127.0.0.1"), sut.getBindAddress()); | ||
assertNotNull(sut.getAuthentication()); | ||
assertEquals("user", sut.getAuthentication().getUsername()); | ||
assertEquals("password", sut.getAuthentication().getPassword()); | ||
assertNotNull(sut.getPersistence()); | ||
assertEquals(FakeSmtpConfigurationProperties.Persistence.DEFAULT_MAX_NUMBER_EMAILS, sut.getPersistence().getMaxNumberEmails().intValue()); | ||
void shouldLoadConfigurationParameters() throws Exception { | ||
Assertions.assertEquals(1234, sut.getPort().intValue()); | ||
Assertions.assertEquals(InetAddress.getByName("127.0.0.1"), sut.getBindAddress()); | ||
Assertions.assertNotNull(sut.getAuthentication()); | ||
Assertions.assertEquals("user", sut.getAuthentication().getUsername()); | ||
Assertions.assertEquals("password", sut.getAuthentication().getPassword()); | ||
Assertions.assertNotNull(sut.getPersistence()); | ||
Assertions.assertEquals(FakeSmtpConfigurationProperties.Persistence.DEFAULT_MAX_NUMBER_EMAILS, sut.getPersistence().getMaxNumberEmails().intValue()); | ||
} | ||
} |
27 changes: 12 additions & 15 deletions
27
...snerfl/fakesmtp/config/FakeSmtpConfigurationPropertiesWithPersistenceIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
package de.gessnerfl.fakesmtp.config; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.ActiveProfiles; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
import org.springframework.test.context.junit.jupiter.SpringExtension; | ||
|
||
import java.net.InetAddress; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNotNull; | ||
import static org.junit.Assert.assertNull; | ||
|
||
@ActiveProfiles({"integrationtest","config_with_persistence_integrationtest"}) | ||
@RunWith(SpringRunner.class) | ||
@ExtendWith(SpringExtension.class) | ||
@SpringBootTest | ||
public class FakeSmtpConfigurationPropertiesWithPersistenceIntegrationTest { | ||
class FakeSmtpConfigurationPropertiesWithPersistenceIntegrationTest { | ||
|
||
@Autowired | ||
private FakeSmtpConfigurationProperties sut; | ||
|
||
@Test | ||
public void shouldLoadConfigurationParameters() throws Exception { | ||
assertEquals(1234, sut.getPort().intValue()); | ||
assertEquals(InetAddress.getByName("127.0.0.1"), sut.getBindAddress()); | ||
assertNull(sut.getAuthentication()); | ||
assertNotNull(sut.getPersistence()); | ||
assertEquals(5, sut.getPersistence().getMaxNumberEmails().intValue()); | ||
void shouldLoadConfigurationParameters() throws Exception { | ||
Assertions.assertEquals(1234, sut.getPort().intValue()); | ||
Assertions.assertEquals(InetAddress.getByName("127.0.0.1"), sut.getBindAddress()); | ||
Assertions.assertNull(sut.getAuthentication()); | ||
Assertions.assertNotNull(sut.getPersistence()); | ||
Assertions.assertEquals(5, sut.getPersistence().getMaxNumberEmails().intValue()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.