Skip to content

Commit

Permalink
Move architecture tests and object method tests into shared test package
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAnzinger committed Sep 13, 2024
1 parent 83ecf2d commit 8b43b93
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import de.tum.cit.aet.artemis.iris.exception.IrisInternalPyrisErrorException;
import de.tum.cit.aet.artemis.iris.service.pyris.dto.PyrisModelDTO;
import de.tum.cit.aet.artemis.iris.service.pyris.dto.lectureingestionwebhook.PyrisWebhookLectureIngestionExecutionDTO;
import de.tum.cit.aet.artemis.iris.web.open.PublicPyrisStatusUpdateResource;
import de.tum.cit.aet.artemis.iris.web.PublicPyrisStatusUpdateResource;

/**
* This service connects to the Python implementation of Iris (called Pyris).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.iris.web.open;
package de.tum.cit.aet.artemis.iris.web;

import static de.tum.cit.aet.artemis.core.config.Constants.PROFILE_IRIS;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

import com.tngtech.archunit.lang.ArchRule;

import de.tum.cit.aet.artemis.architecture.AbstractArchitectureTest;
import de.tum.cit.aet.artemis.core.security.annotations.EnforceAdmin;
import de.tum.cit.aet.artemis.core.security.annotations.EnforceAtLeastEditor;
import de.tum.cit.aet.artemis.core.security.annotations.EnforceAtLeastInstructor;
import de.tum.cit.aet.artemis.core.security.annotations.EnforceAtLeastStudent;
import de.tum.cit.aet.artemis.core.security.annotations.EnforceAtLeastTutor;
import de.tum.cit.aet.artemis.core.security.annotations.EnforceNothing;
import de.tum.cit.aet.artemis.core.security.annotations.ManualConfig;
import de.tum.cit.aet.artemis.shared.architecture.AbstractArchitectureTest;

class AuthorizationArchitectureTest extends AbstractArchitectureTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import com.tngtech.archunit.lang.ArchCondition;
import com.tngtech.archunit.lang.ConditionEvents;

import de.tum.cit.aet.artemis.architecture.AbstractArchitectureTest;
import de.tum.cit.aet.artemis.communication.domain.notification.NotificationPlaceholderCreator;
import de.tum.cit.aet.artemis.shared.architecture.AbstractArchitectureTest;

class NotificationPlaceholderArchitectureTest extends AbstractArchitectureTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package de.tum.cit.aet.artemis.domain;

import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.ALL_TESTS;
import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.ENUM_TOSTRING_NAME_EQUALITY;
import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.ID_EQUALS;
import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.ID_GET_AND_SET;
import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.ID_HASHCODE;
import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.ID_RELATED_TESTS;
import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.INSTANCE_TESTS;
import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.isClassExcludedFrom;
import static de.tum.cit.aet.artemis.domain.ObjectMethodTestExclusions.isClassNotExcludedFrom;
package de.tum.cit.aet.artemis.shared;

import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.ALL_TESTS;
import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.ENUM_TOSTRING_NAME_EQUALITY;
import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.ID_EQUALS;
import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.ID_GET_AND_SET;
import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.ID_HASHCODE;
import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.ID_RELATED_TESTS;
import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.INSTANCE_TESTS;
import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.isClassExcludedFrom;
import static de.tum.cit.aet.artemis.shared.ObjectMethodTestExclusions.isClassNotExcludedFrom;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatNoException;
import static org.assertj.core.api.AssertionsForClassTypes.fail;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.domain;
package de.tum.cit.aet.artemis.shared;

import java.util.EnumSet;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.architecture;
package de.tum.cit.aet.artemis.shared.architecture;

import static com.tngtech.archunit.base.DescribedPredicate.equalTo;
import static com.tngtech.archunit.base.DescribedPredicate.not;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.architecture;
package de.tum.cit.aet.artemis.shared.architecture;

import static com.tngtech.archunit.base.DescribedPredicate.and;
import static com.tngtech.archunit.base.DescribedPredicate.not;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.architecture;
package de.tum.cit.aet.artemis.shared.architecture;

import static com.tngtech.archunit.lang.SimpleConditionEvent.violated;
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.methods;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.architecture;
package de.tum.cit.aet.artemis.shared.architecture;

import static com.tngtech.archunit.base.DescribedPredicate.not;
import static com.tngtech.archunit.core.domain.JavaClass.Predicates.assignableFrom;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.architecture;
package de.tum.cit.aet.artemis.shared.architecture;

import static com.tngtech.archunit.base.DescribedPredicate.and;
import static com.tngtech.archunit.core.domain.JavaClass.Predicates.INTERFACES;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.architecture;
package de.tum.cit.aet.artemis.shared.architecture;

import static com.tngtech.archunit.lang.ConditionEvent.createMessage;
import static com.tngtech.archunit.lang.SimpleConditionEvent.violated;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.tum.cit.aet.artemis.architecture;
package de.tum.cit.aet.artemis.shared.architecture;

import static com.tngtech.archunit.core.domain.JavaModifier.ABSTRACT;
import static com.tngtech.archunit.core.domain.JavaModifier.FINAL;
Expand Down

0 comments on commit 8b43b93

Please sign in to comment.