Skip to content

Commit

Permalink
Flytter annotasjon og test til en annen package.
Browse files Browse the repository at this point in the history
Dette var først tenkt som en validering, men ble noe helt annet.
  • Loading branch information
eivinhb committed Dec 4, 2018
1 parent 1a652bf commit 705cb83
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.digipost.api.datatypes.validation;
package no.digipost.api.datatypes;

import no.digipost.api.datatypes.DataType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import no.digipost.api.datatypes.types.pickup.PickupNotice;
import no.digipost.api.datatypes.types.pickup.PickupNoticeStatus;
import no.digipost.api.datatypes.types.receipt.Receipt;
import no.digipost.api.datatypes.validation.ComplementedBy;

import java.util.Collections;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package no.digipost.api.datatypes.documentation;

import no.digipost.api.datatypes.validation.ComplementedBy;
import no.digipost.api.datatypes.ComplementedBy;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlElement;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
Expand All @@ -19,7 +18,6 @@
import static java.util.stream.Collectors.collectingAndThen;
import static java.util.stream.Collectors.joining;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toSet;

public class DocumentationStructureBuilder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.SerializationFeature;
import no.digipost.api.datatypes.DataTypeIdentifier;
import no.digipost.api.datatypes.marshalling.DataTypesJsonMapper;
import no.digipost.api.datatypes.validation.ComplementedBy;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
Expand All @@ -13,7 +11,6 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static java.lang.System.lineSeparator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import no.digipost.api.datatypes.DataType;
import no.digipost.api.datatypes.documentation.Description;
import no.digipost.api.datatypes.types.receipt.Barcode;
import no.digipost.api.datatypes.validation.ComplementedBy;
import no.digipost.api.datatypes.ComplementedBy;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.digipost.api.datatypes.validation;
package no.digipost.api.datatypes;

import no.digipost.api.datatypes.types.Appointment;
import no.digipost.api.datatypes.types.pickup.PickupNotice;
Expand All @@ -9,7 +9,7 @@
import static co.unruly.matchers.Java8Matchers.whereNot;
import static org.hamcrest.MatcherAssert.assertThat;

public class ComplementValidationTest {
public class ComplementByTest {

@Test
public void kan_komplementere() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lombok.Value;
import no.digipost.api.datatypes.DataType;
import no.digipost.api.datatypes.documentation.Description;
import no.digipost.api.datatypes.validation.ComplementedBy;
import no.digipost.api.datatypes.ComplementedBy;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
Expand Down

0 comments on commit 705cb83

Please sign in to comment.