cleanup and testing work
This commit is contained in:
parent
ffd17c1b21
commit
791142c67e
@ -17,8 +17,7 @@ public class RunAlgorithm {
|
|||||||
int decision = in.nextInt();
|
int decision = in.nextInt();
|
||||||
switch (decision) {
|
switch (decision) {
|
||||||
case 1:
|
case 1:
|
||||||
System.out.println(
|
System.out.println("Optimized distance for travel: " + SimulatedAnnealing.simulateAnnealing(10, 10000, 0.9995));
|
||||||
"Optimized distance for travel: " + SimulatedAnnealing.simulateAnnealing(10, 10000, 0.9995));
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
SlopeOne.slopeOne(3);
|
SlopeOne.slopeOne(3);
|
||||||
|
@ -13,16 +13,14 @@ public class SimpleGeneticAlgorithm {
|
|||||||
|
|
||||||
public static boolean runAlgorithm(int populationSize, String solution) {
|
public static boolean runAlgorithm(int populationSize, String solution) {
|
||||||
if (solution.length() != SimpleGeneticAlgorithm.solution.length) {
|
if (solution.length() != SimpleGeneticAlgorithm.solution.length) {
|
||||||
throw new RuntimeException(
|
throw new RuntimeException("The solution needs to have " + SimpleGeneticAlgorithm.solution.length + " bytes");
|
||||||
"The solution needs to have " + SimpleGeneticAlgorithm.solution.length + " bytes");
|
|
||||||
}
|
}
|
||||||
SimpleGeneticAlgorithm.setSolution(solution);
|
SimpleGeneticAlgorithm.setSolution(solution);
|
||||||
Population myPop = new Population(populationSize, true);
|
Population myPop = new Population(populationSize, true);
|
||||||
|
|
||||||
int generationCount = 1;
|
int generationCount = 1;
|
||||||
while (myPop.getFittest().getFitness() < SimpleGeneticAlgorithm.getMaxFitness()) {
|
while (myPop.getFittest().getFitness() < SimpleGeneticAlgorithm.getMaxFitness()) {
|
||||||
System.out.println(
|
System.out.println("Generation: " + generationCount + " Correct genes found: " + myPop.getFittest().getFitness());
|
||||||
"Generation: " + generationCount + " Correct genes found: " + myPop.getFittest().getFitness());
|
|
||||||
myPop = SimpleGeneticAlgorithm.evolvePopulation(myPop);
|
myPop = SimpleGeneticAlgorithm.evolvePopulation(myPop);
|
||||||
generationCount++;
|
generationCount++;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ public class CharArrayToStringUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenCharArray_whenCallingStringConstructor_shouldConvertToString() {
|
public void givenCharArray_whenCallingStringConstructor_shouldConvertToString() {
|
||||||
char[] charArray = {'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r'};
|
char[] charArray = { 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r' };
|
||||||
String result = new String(charArray);
|
String result = new String(charArray);
|
||||||
String expectedValue = "character";
|
String expectedValue = "character";
|
||||||
|
|
||||||
@ -16,8 +16,8 @@ public class CharArrayToStringUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenCharArray_whenCallingStringConstructorWithOffsetAndLength_shouldConvertToString(){
|
public void givenCharArray_whenCallingStringConstructorWithOffsetAndLength_shouldConvertToString() {
|
||||||
char[] charArray = {'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r'};
|
char[] charArray = { 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r' };
|
||||||
String result = new String(charArray, 4, 3);
|
String result = new String(charArray, 4, 3);
|
||||||
String expectedValue = "act";
|
String expectedValue = "act";
|
||||||
|
|
||||||
@ -25,8 +25,8 @@ public class CharArrayToStringUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenCharArray_whenCallingStringCopyValueOf_shouldConvertToString(){
|
public void givenCharArray_whenCallingStringCopyValueOf_shouldConvertToString() {
|
||||||
char[] charArray = {'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r'};
|
char[] charArray = { 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r' };
|
||||||
String result = String.copyValueOf(charArray);
|
String result = String.copyValueOf(charArray);
|
||||||
String expectedValue = "character";
|
String expectedValue = "character";
|
||||||
|
|
||||||
@ -34,8 +34,8 @@ public class CharArrayToStringUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenCharArray_whenCallingStringCopyValueOfWithOffsetAndLength_shouldConvertToString(){
|
public void givenCharArray_whenCallingStringCopyValueOfWithOffsetAndLength_shouldConvertToString() {
|
||||||
char[] charArray = {'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r'};
|
char[] charArray = { 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r' };
|
||||||
String result = String.copyValueOf(charArray, 0, 4);
|
String result = String.copyValueOf(charArray, 0, 4);
|
||||||
String expectedValue = "char";
|
String expectedValue = "char";
|
||||||
|
|
||||||
@ -43,8 +43,8 @@ public class CharArrayToStringUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenCharArray_whenCallingStringValueOf_shouldConvertToString(){
|
public void givenCharArray_whenCallingStringValueOf_shouldConvertToString() {
|
||||||
char[] charArray = {'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r'};
|
char[] charArray = { 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r' };
|
||||||
String result = String.valueOf(charArray);
|
String result = String.valueOf(charArray);
|
||||||
String expectedValue = "character";
|
String expectedValue = "character";
|
||||||
|
|
||||||
@ -52,8 +52,8 @@ public class CharArrayToStringUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenCharArray_whenCallingStringValueOfWithOffsetAndLength_shouldConvertToString(){
|
public void givenCharArray_whenCallingStringValueOfWithOffsetAndLength_shouldConvertToString() {
|
||||||
char[] charArray = {'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r'};
|
char[] charArray = { 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r' };
|
||||||
String result = String.valueOf(charArray, 3, 4);
|
String result = String.valueOf(charArray, 3, 4);
|
||||||
String expectedValue = "ract";
|
String expectedValue = "ract";
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class StringToCharArrayUnitTest {
|
public class StringToCharArrayUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenString_whenCallingStringToCharArray_shouldConvertToCharArray() {
|
public void givenString_whenCallingStringToCharArray_shouldConvertToCharArray() {
|
||||||
String givenString = "characters";
|
String givenString = "characters";
|
||||||
|
|
||||||
char[] result = givenString.toCharArray();
|
char[] result = givenString.toCharArray();
|
||||||
@ -15,6 +15,6 @@ public void givenString_whenCallingStringToCharArray_shouldConvertToCharArray()
|
|||||||
char[] expectedCharArray = { 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 's' };
|
char[] expectedCharArray = { 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 's' };
|
||||||
|
|
||||||
assertArrayEquals(expectedCharArray, result);
|
assertArrayEquals(expectedCharArray, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
package com.baeldung.algorithms;
|
|
||||||
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm;
|
|
||||||
|
|
||||||
public class BinaryGeneticAlgorithmTest {
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testGA() {
|
|
||||||
Assert.assertTrue(SimpleGeneticAlgorithm.runAlgorithm(50,
|
|
||||||
"1011000100000100010000100000100111001000000100000100000000001111"));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.baeldung.algorithms;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm;
|
||||||
|
|
||||||
|
public class BinaryGeneticAlgorithmUnitTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGA() {
|
||||||
|
Assert.assertTrue(SimpleGeneticAlgorithm.runAlgorithm(50, "1011000100000100010000100000100111001000000100000100000000001111"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -37,7 +37,8 @@ public class PriorityBlockingQueueUnitTest {
|
|||||||
try {
|
try {
|
||||||
Integer poll = queue.take();
|
Integer poll = queue.take();
|
||||||
System.out.println("Polled: " + poll);
|
System.out.println("Polled: " + poll);
|
||||||
} catch (InterruptedException e) {}
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
thread.start();
|
thread.start();
|
||||||
|
@ -18,9 +18,7 @@ public class ConcurrentNavigableMapTests {
|
|||||||
|
|
||||||
updateMapConcurrently(skipListMap, 4);
|
updateMapConcurrently(skipListMap, 4);
|
||||||
|
|
||||||
Iterator<Integer> skipListIter = skipListMap
|
Iterator<Integer> skipListIter = skipListMap.keySet().iterator();
|
||||||
.keySet()
|
|
||||||
.iterator();
|
|
||||||
int previous = skipListIter.next();
|
int previous = skipListIter.next();
|
||||||
while (skipListIter.hasNext()) {
|
while (skipListIter.hasNext()) {
|
||||||
int current = skipListIter.next();
|
int current = skipListIter.next();
|
||||||
|
@ -16,23 +16,20 @@ import static org.junit.Assert.assertTrue;
|
|||||||
public class ThreadPoolInParallelStreamTest {
|
public class ThreadPoolInParallelStreamTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void giveRangeOfLongs_whenSummedInParallel_shouldBeEqualToExpectedTotal()
|
public void giveRangeOfLongs_whenSummedInParallel_shouldBeEqualToExpectedTotal() throws InterruptedException, ExecutionException {
|
||||||
throws InterruptedException, ExecutionException {
|
|
||||||
long firstNum = 1;
|
long firstNum = 1;
|
||||||
long lastNum = 1_000_000;
|
long lastNum = 1_000_000;
|
||||||
|
|
||||||
List<Long> aList = LongStream.rangeClosed(firstNum, lastNum).boxed()
|
List<Long> aList = LongStream.rangeClosed(firstNum, lastNum).boxed().collect(Collectors.toList());
|
||||||
.collect(Collectors.toList());
|
|
||||||
|
|
||||||
ForkJoinPool customThreadPool = new ForkJoinPool(4);
|
ForkJoinPool customThreadPool = new ForkJoinPool(4);
|
||||||
long actualTotal = customThreadPool.submit(() -> aList.parallelStream()
|
long actualTotal = customThreadPool.submit(() -> aList.parallelStream().reduce(0L, Long::sum)).get();
|
||||||
.reduce(0L, Long::sum)).get();
|
|
||||||
|
|
||||||
assertEquals((lastNum + firstNum) * lastNum / 2, actualTotal);
|
assertEquals((lastNum + firstNum) * lastNum / 2, actualTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenList_whenCallingParallelStream_shouldBeParallelStream(){
|
public void givenList_whenCallingParallelStream_shouldBeParallelStream() {
|
||||||
List<Long> aList = new ArrayList<>();
|
List<Long> aList = new ArrayList<>();
|
||||||
Stream<Long> parallelStream = aList.parallelStream();
|
Stream<Long> parallelStream = aList.parallelStream();
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
||||||
<artifactId>logmdc</artifactId>
|
<artifactId>log-mdc</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<name>logmdc</name>
|
<name>log-mdc</name>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<description>tutorial on logging with MDC and NDC</description>
|
<description>tutorial on logging with MDC and NDC</description>
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
|||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = { ExternalPropertiesWithXmlConfig.class }, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = { ExternalPropertiesWithXmlConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||||
@Ignore("manual only")
|
@Ignore("manual only")
|
||||||
public class ExternalPropertiesWithXmlIntegrationTest {
|
public class ExternalPropertiesWithXmlManualTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private Environment env;
|
private Environment env;
|
@ -12,7 +12,7 @@ import java.sql.SQLException;
|
|||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = AppConfig.class, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = AppConfig.class, loader = AnnotationConfigContextLoader.class)
|
||||||
public class SpringRetryTest {
|
public class SpringRetryIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MyService myService;
|
private MyService myService;
|
@ -8,7 +8,8 @@ import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
|||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = { ThreadPoolTaskSchedulerConfig.class }, loader = AnnotationConfigContextLoader.class)
|
@ContextConfiguration(classes = { ThreadPoolTaskSchedulerConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||||
public class ThreadPoolTaskSchedulerTest {
|
public class ThreadPoolTaskSchedulerIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testThreadPoolTaskSchedulerAnnotation() throws InterruptedException {
|
public void testThreadPoolTaskSchedulerAnnotation() throws InterruptedException {
|
||||||
Thread.sleep(2550);
|
Thread.sleep(2550);
|
@ -5,7 +5,7 @@ import org.baeldung.properties.basic.PropertiesWithMultipleXmlsIntegrationTest;
|
|||||||
import org.baeldung.properties.basic.PropertiesWithXmlIntegrationTest;
|
import org.baeldung.properties.basic.PropertiesWithXmlIntegrationTest;
|
||||||
import org.baeldung.properties.external.ExternalPropertiesWithJavaIntegrationTest;
|
import org.baeldung.properties.external.ExternalPropertiesWithJavaIntegrationTest;
|
||||||
import org.baeldung.properties.external.ExternalPropertiesWithMultipleXmlsIntegrationTest;
|
import org.baeldung.properties.external.ExternalPropertiesWithMultipleXmlsIntegrationTest;
|
||||||
import org.baeldung.properties.external.ExternalPropertiesWithXmlIntegrationTest;
|
import org.baeldung.properties.external.ExternalPropertiesWithXmlManualTest;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Suite;
|
import org.junit.runners.Suite;
|
||||||
import org.junit.runners.Suite.SuiteClasses;
|
import org.junit.runners.Suite.SuiteClasses;
|
||||||
@ -15,7 +15,7 @@ import org.junit.runners.Suite.SuiteClasses;
|
|||||||
PropertiesWithXmlIntegrationTest.class,
|
PropertiesWithXmlIntegrationTest.class,
|
||||||
ExternalPropertiesWithJavaIntegrationTest.class,
|
ExternalPropertiesWithJavaIntegrationTest.class,
|
||||||
ExternalPropertiesWithMultipleXmlsIntegrationTest.class,
|
ExternalPropertiesWithMultipleXmlsIntegrationTest.class,
|
||||||
ExternalPropertiesWithXmlIntegrationTest.class,
|
ExternalPropertiesWithXmlManualTest.class,
|
||||||
ExtendedPropertiesWithJavaIntegrationTest.class,
|
ExtendedPropertiesWithJavaIntegrationTest.class,
|
||||||
PropertiesWithMultipleXmlsIntegrationTest.class,
|
PropertiesWithMultipleXmlsIntegrationTest.class,
|
||||||
})// @formatter:on
|
})// @formatter:on
|
||||||
|
@ -22,7 +22,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
@ContextConfiguration(classes = BeanNameUrlHandlerMappingConfig.class)
|
@ContextConfiguration(classes = BeanNameUrlHandlerMappingConfig.class)
|
||||||
public class BeanNameMappingConfigTest {
|
public class BeanNameMappingConfigIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WebApplicationContext webAppContext;
|
private WebApplicationContext webAppContext;
|
@ -22,7 +22,7 @@ import com.baeldung.config.ControllerClassNameHandlerMappingConfig;
|
|||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
@ContextConfiguration(classes = ControllerClassNameHandlerMappingConfig.class)
|
@ContextConfiguration(classes = ControllerClassNameHandlerMappingConfig.class)
|
||||||
public class ControllerClassNameHandlerMappingTest {
|
public class ControllerClassNameHandlerMappingIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WebApplicationContext webAppContext;
|
private WebApplicationContext webAppContext;
|
@ -1,7 +1,10 @@
|
|||||||
package com.baeldung.handlermappings;
|
package com.baeldung.handlermappings;
|
||||||
|
|
||||||
import com.baeldung.config.HandlerMappingDefaultConfig;
|
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
||||||
import com.baeldung.config.HandlerMappingPrioritiesConfig;
|
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
|
||||||
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||||
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
@ -14,15 +17,12 @@ import org.springframework.test.web.servlet.MockMvc;
|
|||||||
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
|
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
|
||||||
import org.springframework.web.context.WebApplicationContext;
|
import org.springframework.web.context.WebApplicationContext;
|
||||||
|
|
||||||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
import com.baeldung.config.HandlerMappingDefaultConfig;
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
|
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;
|
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
@ContextConfiguration(classes = HandlerMappingDefaultConfig.class)
|
@ContextConfiguration(classes = HandlerMappingDefaultConfig.class)
|
||||||
public class HandlerMappingDefaultConfigTest {
|
public class HandlerMappingDefaultConfigIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WebApplicationContext webAppContext;
|
private WebApplicationContext webAppContext;
|
@ -21,7 +21,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
@ContextConfiguration(classes = HandlerMappingPrioritiesConfig.class)
|
@ContextConfiguration(classes = HandlerMappingPrioritiesConfig.class)
|
||||||
public class HandlerMappingPriorityConfigTest {
|
public class HandlerMappingPriorityConfigIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WebApplicationContext webAppContext;
|
private WebApplicationContext webAppContext;
|
@ -21,7 +21,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
@ContextConfiguration(classes = SimpleUrlHandlerMappingConfig.class)
|
@ContextConfiguration(classes = SimpleUrlHandlerMappingConfig.class)
|
||||||
public class SimpleUrlMappingConfigTest {
|
public class SimpleUrlMappingConfigIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WebApplicationContext webAppContext;
|
private WebApplicationContext webAppContext;
|
Loading…
x
Reference in New Issue
Block a user