BAEL-3385: Move article related code to its own package
This commit is contained in:
parent
2601170c2b
commit
e11af10b9b
|
@ -0,0 +1,12 @@
|
|||
package com.baeldung.h2db.notnull;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class NotNullVsNullableApplication {
|
||||
|
||||
public static void main(String... args) {
|
||||
SpringApplication.run(NotNullVsNullableApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
package com.baeldung.h2db.springboot.daos;
|
||||
package com.baeldung.h2db.notnull.daos;
|
||||
|
||||
import com.baeldung.h2db.springboot.models.Item;
|
||||
import com.baeldung.h2db.notnull.models.Item;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
import java.math.BigDecimal;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.h2db.springboot.models;
|
||||
package com.baeldung.h2db.notnull.models;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
|
@ -1,8 +1,7 @@
|
|||
package com.baeldung;
|
||||
package com.baeldung.h2db.notnull;
|
||||
|
||||
import com.baeldung.h2db.springboot.SpringBootH2Application;
|
||||
import com.baeldung.h2db.springboot.daos.ItemRepository;
|
||||
import com.baeldung.h2db.springboot.models.Item;
|
||||
import com.baeldung.h2db.notnull.daos.ItemRepository;
|
||||
import com.baeldung.h2db.notnull.models.Item;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -14,7 +13,7 @@ import javax.validation.ConstraintViolationException;
|
|||
import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = SpringBootH2Application.class)
|
||||
@SpringBootTest(classes = NotNullVsNullableApplication.class)
|
||||
public class ItemIntegrationTest {
|
||||
|
||||
@Autowired
|
Loading…
Reference in New Issue