BAEL-19967: Migrate spring-aop module to the com.baeldung package
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
package org.baeldung;
|
||||
package com.baeldung;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package org.baeldung;
|
||||
package com.baeldung;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package org.baeldung.aspectj;
|
||||
package com.baeldung.aspectj;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package org.baeldung.aspectj;
|
||||
package com.baeldung.aspectj;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
+29
-29
@@ -1,29 +1,29 @@
|
||||
package org.baeldung.logger;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(value = {"classpath:springAop-applicationContext.xml"})
|
||||
public class CalculatorIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private SampleAdder sampleAdder;
|
||||
|
||||
@Test
|
||||
public void whenAddValidValues_returnsSucessfully() {
|
||||
final int addedValue = sampleAdder.add(12, 12);
|
||||
|
||||
assertEquals(24, addedValue);
|
||||
}
|
||||
|
||||
@Test (expected = IllegalArgumentException.class)
|
||||
public void whenAddInValidValues_throwsException() {
|
||||
sampleAdder.add(12, -12);
|
||||
}
|
||||
|
||||
}
|
||||
package com.baeldung.logger;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(value = {"classpath:springAop-applicationContext.xml"})
|
||||
public class CalculatorIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private SampleAdder sampleAdder;
|
||||
|
||||
@Test
|
||||
public void whenAddValidValues_returnsSucessfully() {
|
||||
final int addedValue = sampleAdder.add(12, 12);
|
||||
|
||||
assertEquals(24, addedValue);
|
||||
}
|
||||
|
||||
@Test (expected = IllegalArgumentException.class)
|
||||
public void whenAddInValidValues_throwsException() {
|
||||
sampleAdder.add(12, -12);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user