BAEL-3385: Move article related code to its own package

This commit is contained in:
Krzysztof Woyke 2019-12-16 08:51:01 +01:00
parent 2601170c2b
commit e11af10b9b
4 changed files with 19 additions and 8 deletions

View File

@ -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);
}
}

View File

@ -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;

View File

@ -1,4 +1,4 @@
package com.baeldung.h2db.springboot.models;
package com.baeldung.h2db.notnull.models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

View File

@ -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