GH-114 - Rename ….modulith.model to ….modulith.core.

This commit is contained in:
Oliver Drotbohm
2023-01-12 16:23:14 +01:00
parent 0d009f06c9
commit 5c34886907
64 changed files with 150 additions and 123 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.modulith.model;
package org.springframework.modulith.core;
import static org.assertj.core.api.Assertions.*;
@@ -22,6 +22,7 @@ import java.lang.annotation.RetentionPolicy;
import org.junit.jupiter.api.Test;
import org.springframework.modulith.Modulithic;
import org.springframework.modulith.core.AnnotationModulithMetadata;
/**
* Unit tests for {@link AnnotationModulithMetadata}.

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.modulith.model;
package org.springframework.modulith.core;
import static org.assertj.core.api.Assertions.*;
@@ -33,8 +33,8 @@ import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.EventListener;
import org.springframework.data.repository.CrudRepository;
import org.springframework.modulith.model.ArchitecturallyEvidentType.SpringAwareArchitecturallyEvidentType;
import org.springframework.modulith.model.ArchitecturallyEvidentType.SpringDataAwareArchitecturallyEvidentType;
import org.springframework.modulith.core.ArchitecturallyEvidentType.SpringAwareArchitecturallyEvidentType;
import org.springframework.modulith.core.ArchitecturallyEvidentType.SpringDataAwareArchitecturallyEvidentType;
import org.springframework.stereotype.Repository;
import com.tngtech.archunit.core.domain.JavaClass;
@@ -54,7 +54,7 @@ class ArchitecturallyEvidentTypeUnitTest {
ArchitecturallyEvidentType type = ArchitecturallyEvidentType.of(self, classes);
assertThat(type.getAbbreviatedFullName()).isEqualTo("o.s.m.m.ArchitecturallyEvidentTypeUnitTest");
assertThat(type.getAbbreviatedFullName()).isEqualTo("o.s.m.c.ArchitecturallyEvidentTypeUnitTest");
}
@Test

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.modulith.model;
package org.springframework.modulith.core;
import static org.assertj.core.api.Assertions.*;
@@ -21,7 +21,9 @@ import java.util.stream.Stream;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.modulith.model.ApplicationModule.QualifiedDependency;
import org.springframework.modulith.core.ArchitecturallyEvidentType;
import org.springframework.modulith.core.Classes;
import org.springframework.modulith.core.ApplicationModule.QualifiedDependency;
import com.tngtech.archunit.core.domain.JavaClass;
import com.tngtech.archunit.core.importer.ClassFileImporter;

View File

@@ -13,11 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.modulith.model;
package org.springframework.modulith.core;
import static org.assertj.core.api.Assertions.*;
import org.junit.jupiter.api.Test;
import org.springframework.modulith.core.ApplicationModuleDetectionStrategies;
import org.springframework.modulith.core.ApplicationModuleDetectionStrategy;
import org.springframework.modulith.core.Classes;
import org.springframework.modulith.core.JavaPackage;
import com.tngtech.archunit.core.importer.ClassFileImporter;
import com.tngtech.archunit.core.importer.ImportOption;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.modulith.model;
package org.springframework.modulith.core;
import static org.assertj.core.api.Assertions.*;
@@ -24,6 +24,11 @@ import javax.sql.DataSource;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestInstance.Lifecycle;
import org.springframework.modulith.core.ApplicationModule;
import org.springframework.modulith.core.Classes;
import org.springframework.modulith.core.EventType;
import org.springframework.modulith.core.JavaPackage;
import org.springframework.modulith.core.SpringBean;
import com.acme.withatbean.TestEvents.JMoleculesAnnotated;
import com.acme.withatbean.TestEvents.JMoleculesImplementing;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.modulith.model;
package org.springframework.modulith.core;
import static org.assertj.core.api.Assertions.*;
@@ -23,6 +23,7 @@ import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.modulith.Modulith;
import org.springframework.modulith.Modulithic;
import org.springframework.modulith.core.ModulithMetadata;
/**
* Unit tests for {@link ModulithMetadata}.

View File

@@ -13,12 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.modulith.model;
package org.springframework.modulith.core;
import static com.tngtech.archunit.core.domain.JavaClass.Predicates.*;
import org.jmolecules.ddd.annotation.AggregateRoot;
import org.springframework.data.repository.Repository;
import org.springframework.modulith.core.ApplicationModules;
import org.springframework.modulith.core.Classes;
import org.springframework.util.Assert;
import com.tngtech.archunit.base.DescribedPredicate;

View File

@@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.modulith.model;
package org.springframework.modulith.core;
import static org.assertj.core.api.Assertions.*;
import org.junit.jupiter.api.Test;
import org.springframework.modulith.core.Violations;
/**
* Unit tests for {@link Violations}.