Skip to content

Commit

Permalink
Refactoring the packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Agnosaurus committed Oct 8, 2024
1 parent ef21608 commit 2c55d1e
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion dvd-store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.worldline.ep2.kata</groupId>
<groupId>com.quality.workshop</groupId>
<artifactId>dvd-store</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.worldline.ep2.kata;
package com.quality.workshop;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.worldline.ep2.kata.db;
package com.quality.workshop.db;

import javax.enterprise.context.ApplicationScoped;


import com.worldline.ep2.kata.entity.DVDRentEvents;
import com.quality.workshop.entity.DVDRentEvents;

import io.quarkus.hibernate.orm.panache.PanacheRepository;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.worldline.ep2.kata.db;
package com.quality.workshop.db;

import java.time.LocalDate;
import java.util.Arrays;
Expand All @@ -9,10 +9,10 @@

import javax.transaction.Transactional;

import com.worldline.ep2.kata.entity.DVD;
import com.worldline.ep2.kata.entity.DVDRentEvents;
import com.worldline.ep2.kata.entity.Schauspieler;
import com.worldline.ep2.kata.entity.VideoTape;
import com.quality.workshop.entity.DVD;
import com.quality.workshop.entity.DVDRentEvents;
import com.quality.workshop.entity.Schauspieler;
import com.quality.workshop.entity.VideoTape;

import io.quarkus.runtime.StartupEvent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.worldline.ep2.kata.entity;
package com.quality.workshop.entity;

import java.time.LocalDate;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.worldline.ep2.kata.entity;
package com.quality.workshop.entity;

import java.sql.Date;
import java.time.LocalDate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.worldline.ep2.kata.entity;
package com.quality.workshop.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.worldline.ep2.kata.entity;
package com.quality.workshop.entity;

import java.time.LocalDate;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.worldline.ep2.kata.money;
package com.quality.workshop.money;

import com.worldline.ep2.kata.entity.DVD;
import com.worldline.ep2.kata.entity.VideoTape;
import com.quality.workshop.entity.DVD;
import com.quality.workshop.entity.VideoTape;

public class PriceCalculator {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.worldline.ep2.kata.money;
package com.quality.workshop.money;

import static com.worldline.ep2.kata.TestEntityHelper.getVideo;
import static com.worldline.ep2.kata.money.PriceCalculator.computeDVDPrice;
import static com.quality.workshop.TestEntityHelper.getVideo;
import static com.quality.workshop.money.PriceCalculator.computeDVDPrice;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.stream.Stream;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import com.worldline.ep2.kata.entity.VideoTape;
import com.quality.workshop.entity.VideoTape;


public class PriceCalculatorTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.worldline.ep2.kata.rest;
package com.quality.workshop.rest;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import com.worldline.ep2.kata.entity.Schauspieler;
import com.quality.workshop.entity.Schauspieler;

@Path("/actor")
public class ActorResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.worldline.ep2.kata.rest;
package com.quality.workshop.rest;

import static com.worldline.ep2.kata.rest.RESTUtils.retrieveResourceFromResponse;
import static com.quality.workshop.rest.RESTUtils.retrieveResourceFromResponse;
import static org.hamcrest.MatcherAssert.assertThat;

import java.io.IOException;
Expand All @@ -12,7 +12,7 @@
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;

import com.worldline.ep2.kata.entity.Schauspieler;
import com.quality.workshop.entity.Schauspieler;

/***
* Quick example of an integration-test.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.worldline.ep2.kata.rest;
package com.quality.workshop.rest;

import java.sql.Date;
import java.time.LocalDate;
Expand All @@ -10,8 +10,8 @@
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import com.worldline.ep2.kata.entity.DVD;
import com.worldline.ep2.kata.entity.DVDRentEvents;
import com.quality.workshop.entity.DVD;
import com.quality.workshop.entity.DVDRentEvents;

@Path("/dvdevents")
@Produces
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.worldline.ep2.kata.rest;
package com.quality.workshop.rest;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import com.worldline.ep2.kata.entity.DVD;
import com.worldline.ep2.kata.entity.Schauspieler;
import com.quality.workshop.entity.DVD;
import com.quality.workshop.entity.Schauspieler;

@Path("/dvd")
public class DVDResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.worldline.ep2.kata.rest;
package com.quality.workshop.rest;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.worldline.ep2.kata.rest;
package com.quality.workshop.rest;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import com.worldline.ep2.kata.entity.Schauspieler;
import com.worldline.ep2.kata.entity.VideoTape;
import com.quality.workshop.entity.Schauspieler;
import com.quality.workshop.entity.VideoTape;

@Path("/video")
public class VideoTapeResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.worldline.ep2.kata;
package com.quality.workshop;

import java.time.LocalDate;
import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import com.worldline.ep2.kata.entity.Schauspieler;
import com.worldline.ep2.kata.entity.VideoTape;
import com.quality.workshop.entity.Schauspieler;
import com.quality.workshop.entity.VideoTape;

/**
* Helper class to get Entity-like objects for unit-tests
Expand Down

0 comments on commit 2c55d1e

Please sign in to comment.