Skip to content

Commit

Permalink
Fix unit tests broken for community edition
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Nguyen committed May 20, 2015
1 parent 7f376ba commit 9b245d7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions mycollab-app-community/src/main/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- Errors were reported during translation. -->
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{ABSOLUTE} %5p %c{1}:%L - %m%n</pattern>
<pattern>%d{"HH:mm:ss,SSS"} %5p %c{1}:%L - %m%n</pattern>
</encoder>
</appender>
<appender name="email" class="com.esofthead.mycollab.configuration.MailAppender">
Expand All @@ -30,7 +30,7 @@
<maxHistory>30</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%d{ABSOLUTE} %5p %c{1}:%L - %m%n</pattern>
<pattern>%d{"HH:mm:ss,SSS"} %5p %c{1}:%L - %m%n</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="INFO"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static boolean isEditionNewer(String testFW) {
return isEditionNewer(testFW, getVersion());
}

static boolean isEditionNewer(String testFW, String baseFW) {
public static boolean isEditionNewer(String testFW, String baseFW) {
try {
int[] testVer = getVersionNumbers(testFW);
int[] baseVer = getVersionNumbers(baseFW);
Expand Down
4 changes: 4 additions & 0 deletions mycollab-jackrabbit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static PropertySourcesPlaceholderConfigurer properties() {
File myCollabResourceFile = FileUtils.getDesireFile(System.getProperty("user.dir"),
"conf/mycollab.properties", "src/main/conf/mycollab.properties");

if (myCollabResourceFile.exists()) {
if (myCollabResourceFile != null) {
resources = new Resource[] { new FileSystemResource(myCollabResourceFile) };
} else {
resources = new Resource[] { new ClassPathResource(
Expand Down
3 changes: 1 addition & 2 deletions mycollab-test/src/main/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<configuration>
<!-- Errors were reported during translation. -->
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<Target>System.out</Target>
<encoder>
<pattern>%d{ABSOLUTE} %5p %t %c{1}:%L - %m%n</pattern>
<pattern>%d{"HH:mm:ss,SSS"} %5p %c{1}:%L - %m%n</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="INFO"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@
import com.vaadin.ui.ComponentContainer;

/**
*
*
* @author MyCollab Ltd.
* @since 1.0
*/
public class ForgotPasswordPresenter extends
AbstractPresenter<ForgotPasswordView> {
public class ForgotPasswordPresenter extends AbstractPresenter<ForgotPasswordView> {
private static final long serialVersionUID = 1L;

public ForgotPasswordPresenter() {
Expand Down

0 comments on commit 9b245d7

Please sign in to comment.