Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 89dee48

Browse files
committed
small cleanings
1 parent 638a7a3 commit 89dee48

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

base/src/test/java/org/rapidpm/persistence/prj/BaseDAOTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
import org.junit.Test;
1414
import org.rapidpm.Constants;
1515
import org.rapidpm.persistence.DaoFactory;
16+
import org.rapidpm.persistence.DaoFactorySingelton;
1617

1718
import static org.junit.Assert.assertEquals;
1819

1920
public class BaseDAOTest {
2021

21-
protected DaoFactory daoFactory = new DaoFactory(Constants.PERSISTENCE_UNIT_NAME_TEST);
22+
protected DaoFactory daoFactory = DaoFactorySingelton.getInstance();
2223

2324

2425
@Before
@@ -28,7 +29,7 @@ public void setUp() throws Exception {
2829

2930
@After
3031
public void tearDown() throws Exception {
31-
daoFactory.getEntityManager().close();
32+
// daoFactory.getEntityManager().close();
3233
}
3334

3435
@Test

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@
9393
<showWarnings>true</showWarnings>
9494
</configuration>
9595
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-surefire-plugin</artifactId>
99+
<version>2.12.4</version>
100+
<configuration>
101+
<skipTests>true</skipTests>
102+
</configuration>
103+
</plugin>
96104
<plugin>
97105
<groupId>org.sonatype.plugins</groupId>
98106
<artifactId>nexus-staging-maven-plugin</artifactId>

webgui/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<properties>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
<vaadin.version>7.0.1</vaadin.version>
19+
<vaadin.version>7.0.3</vaadin.version>
2020
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
2121
</properties>
2222
<repositories>

webgui/src/main/java/org/rapidpm/webapp/vaadin/BaseUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public abstract class BaseUI extends UI {
3535
private static final Logger logger = Logger.getLogger(BaseUI.class);
3636

3737
private static final boolean DEBUG_MODE = false;
38-
private static final String VERSION = "alpha - build 20130112 - bf57b264fc2f9f0b14fd8bb967bd84b1fa50bbdd";
38+
private static final String VERSION = "alpha - for testing only";
3939

4040
private final HorizontalLayout linkLeistenLayout = new HorizontalLayout(); //obere buttonLeiste
4141
private final HorizontalLayout iconsLayout = new HorizontalLayout();

0 commit comments

Comments
 (0)