Refactoring: Jasper export related classes in own package

master
Markus Kreth 7 years ago
parent 5395430640
commit 75d6ed4f09
  1. 4
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/jasper/CalendarCreator.java
  2. 2
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/jasper/DateMetadata.java
  3. 2
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/jasper/MonthlyCalendarCreator.java
  4. 2
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/jasper/MonthlyCalendarSource.java
  5. 2
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/jasper/YearlyCalendarCreator.java
  6. 1
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/HeadComponent.java
  7. 2
      src/test/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/CalendarCreatorTest.java
  8. 2
      src/test/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/YearlyCalendarCreatorTest.java

@ -1,4 +1,4 @@
package de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components;
package de.kreth.vaadin.clubhelper.vaadinclubhelper.jasper;
import java.io.InputStream;
import java.time.LocalDate;
@ -168,7 +168,7 @@ public abstract class CalendarCreator {
return dao.listAll();
}
static Calendar toCalendar(long time) {
public static Calendar toCalendar(long time) {
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(time);
return cal;

@ -1,4 +1,4 @@
package de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components;
package de.kreth.vaadin.clubhelper.vaadinclubhelper.jasper;
import java.time.YearMonth;
import java.util.Calendar;

@ -1,4 +1,4 @@
package de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components;
package de.kreth.vaadin.clubhelper.vaadinclubhelper.jasper;
import java.io.InputStream;
import java.sql.Timestamp;

@ -1,4 +1,4 @@
package de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components;
package de.kreth.vaadin.clubhelper.vaadinclubhelper.jasper;
import java.time.LocalDate;
import java.time.YearMonth;

@ -1,4 +1,4 @@
package de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components;
package de.kreth.vaadin.clubhelper.vaadinclubhelper.jasper;
import java.io.InputStream;
import java.time.LocalDate;

@ -32,6 +32,7 @@ import com.vaadin.ui.Notification;
import com.vaadin.ui.Window;
import de.kreth.vaadin.clubhelper.vaadinclubhelper.data.ClubEvent;
import de.kreth.vaadin.clubhelper.vaadinclubhelper.jasper.CalendarCreator;
import de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components.CalendarComponent.ClubEventProvider;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperExportManager;

@ -8,6 +8,8 @@ import org.junit.jupiter.api.Test;
import com.ibm.icu.util.Calendar;
import de.kreth.vaadin.clubhelper.vaadinclubhelper.jasper.DateMetadata;
class CalendarCreatorTest {
@Test

@ -5,6 +5,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import de.kreth.vaadin.clubhelper.vaadinclubhelper.jasper.YearlyCalendarCreator;
class YearlyCalendarCreatorTest {
@BeforeEach

Loading…
Cancel
Save