Skip to content

Commit

Permalink
LPS-54421 SF
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyangzhou authored and brianchandotcom committed Apr 20, 2015
1 parent 159b87c commit 971c0c6
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ private void _assertContent(
for (long i = 0; i < sourceIndexInput.length(); i++) {
Assert.assertEquals(
fileName + " has different source and target byte value at " +
i, sourceIndexInput.readByte(),
targetIndexInput.readByte());
i,
sourceIndexInput.readByte(), targetIndexInput.readByte());
}

sourceIndexInput.close();
Expand All @@ -286,8 +286,8 @@ private void _assertDirectory(
Assert.assertEquals(
Arrays.toString(sourceFileNames) +
" does not have the same length as " +
Arrays.toString(targetFileNames), sourceFileNames.length,
targetFileNames.length);
Arrays.toString(targetFileNames),
sourceFileNames.length, targetFileNames.length);

for (String fileName : sourceFileNames) {
long sourceLength = sourceDirectory.fileLength(fileName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ public void testProcessTemplate6() throws Exception {

Assert.fail();
}
catch (TemplateException e) {
String message = e.getMessage();
catch (TemplateException te) {
String message = te.getMessage();

Assert.assertTrue(message.contains(_WRONG_ERROR_TEMPLATE_ID));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ public void testProcessTemplate2() throws Exception {

Assert.fail();
}
catch (TemplateException e) {
String message = e.getMessage();
catch (TemplateException te) {
String message = te.getMessage();

Assert.assertTrue(message.contains(_WRONG_TEMPLATE_ID));
}
Expand Down Expand Up @@ -340,8 +340,8 @@ public void testProcessTemplate6() throws Exception {

Assert.fail();
}
catch (TemplateException e) {
String message = e.getMessage();
catch (TemplateException te) {
String message = te.getMessage();

Assert.assertTrue(message.contains(_WRONG_ERROR_TEMPLATE_ID));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public void testFindByC_N_S_P_A() throws Exception {

Assert.assertTrue(
"The method findByC_N_S_P_A should have returned the role " +
_arbitraryRole.getRoleId(), exists);
_arbitraryRole.getRoleId(),
exists);
}

@SuppressWarnings("PMD.JUnitUseAssertFailPropertly")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ public void testFindByC_C_N_DJoinByRoleResourcePermissions()

Assert.assertTrue(
"The method findByC_C_N_D should have returned the group " +
_group.getGroupId(), exists);
_group.getGroupId(),
exists);
}

@Test
Expand All @@ -150,7 +151,8 @@ public void testFindByC_C_N_DJoinByRoleResourceTypePermissions()

Assert.assertTrue(
"The method findByC_C_N_D should have returned the group " +
_group.getGroupId(), exists);
_group.getGroupId(),
exists);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ protected String getScript(String name) throws IOException {
InputStream inputStream = clazz.getResourceAsStream(
"dependencies/" + name);

String script = StringUtil.read(inputStream);

return script;
return StringUtil.read(inputStream);
}

@Mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ public TemplateManager addingService(

_templateManagers.put(serviceReference, templateManager);
}
catch (TemplateException e) {
catch (TemplateException te) {
if (_log.isWarnEnabled()) {
_log.warn(
"unable to init " + name + " Template Manager ", e);
"unable to init " + name + " Template Manager ", te);
}
}

Expand Down

0 comments on commit 971c0c6

Please sign in to comment.