Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit cb3aa84

Browse files
author
Hai Nguyen
committed
Fix unit test
1 parent 840a85a commit cb3aa84

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

mycollab-app-community/src/main/txt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Version 4.5.5
5353

5454
**Improvements**
5555

56-
* Add user comment to activity stream
56+
* Add user comment to the activity stream
5757

5858
**Bug Fixes**
5959

mycollab-services-community/src/test/java/com/esofthead/mycollab/module/project/service/ProjectServiceTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void testSaveProject() {
6262
assertThat(projectId).isGreaterThan(0);
6363
}
6464

65-
@SuppressWarnings({"rawtypes", "unchecked"})
65+
@SuppressWarnings({ "rawtypes", "unchecked" })
6666
@DataSet
6767
@Test
6868
public void testGetListProjects() {
@@ -74,7 +74,7 @@ public void testGetListProjects() {
7474
tuple(2, "B"), tuple(3, "C"), tuple(4, "D"));
7575
}
7676

77-
@SuppressWarnings({"rawtypes", "unchecked"})
77+
@SuppressWarnings({ "rawtypes", "unchecked" })
7878
@DataSet
7979
@Test
8080
public void testGetListProjectsByCriteria() {
@@ -89,7 +89,7 @@ public void testGetListProjectsByCriteria() {
8989
tuple(2, "B"), tuple(3, "C"), tuple(4, "D"));
9090
}
9191

92-
@SuppressWarnings({"rawtypes", "unchecked"})
92+
@SuppressWarnings({ "rawtypes", "unchecked" })
9393
@DataSet
9494
@Test
9595
public void testGetListProjectsByUsername() {
@@ -124,7 +124,7 @@ public void testGetProjectsUserInvolved() {
124124
public void testGetActivityStreams() {
125125
ActivityStreamSearchCriteria criteria = new ActivityStreamSearchCriteria();
126126
criteria.setModuleSet(new SetSearchField<String>(
127-
new String[]{ModuleNameConstants.PRJ}));
127+
new String[] { ModuleNameConstants.PRJ }));
128128
criteria.setExtraTypeIds(new SetSearchField<Integer>(4));
129129
criteria.setSaccountid(new NumberSearchField(1));
130130
List<ProjectActivityStream> streams = projectActivityStreamService
@@ -133,7 +133,7 @@ public void testGetActivityStreams() {
133133

134134
assertThat(streams.size()).isEqualTo(3);
135135
assertThat(streams).extracting("type", "typeid", "itemKey").contains(
136-
tuple("Project-Task", 1, 10), tuple("Project-Bug", 1, 20),
137-
tuple("Project-Risk", 1, null));
136+
tuple("Project-Bug", "1", 20), tuple("Project-Task", "1", 10),
137+
tuple("Project-Risk", "1", null));
138138
}
139139
}

mycollab-services-community/src/test/resources/com/esofthead/mycollab/module/project/service/ProjectServiceTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
id="1" />
5454

5555
<s_activitystream typeId="1" id="2" type="Project-Task" module="Project"
56-
sAccountId="1" extraTypeId="4" createdUser="admin" />
56+
sAccountId="1" extraTypeId="4" createdUser="admin" action="create" />
5757

5858
<s_activitystream typeId="1" id="1" type="Project-Bug" module="Project"
59-
sAccountId="1" extraTypeId="4" createdUser="admin" />
59+
sAccountId="1" extraTypeId="4" createdUser="admin" action="create" />
6060

6161
<s_activitystream typeId="1" id="3" type="Project-Risk" module="Project"
62-
sAccountId="1" extraTypeId="4" createdUser="admin" />
62+
sAccountId="1" extraTypeId="4" createdUser="admin" action="create" />
6363
</dataset>

mycollab-test/src/main/resources/log4j-test.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %t %c{1}:%L - %m
1414
log4j.logger.fr.xebia.servlet.filter.ExpiresFilter=INFO
1515
log4j.logger.com.esofthead = DEBUG
1616
log4j.logger.db.migration = INFO
17-
log4j.logger.org.springframework = INFO
17+
log4j.logger.org.springframework = DEBUG
1818
log4j.logger.org.restlet = INFO
1919
log4j.logger.org.apache.ibatis=DEBUG
2020

0 commit comments

Comments
 (0)