Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Sep 30, 2013
1 parent 7bcad57 commit 0857cb7
Show file tree
Hide file tree
Showing 51 changed files with 1,281 additions and 1,283 deletions.
Expand Up @@ -70,13 +70,13 @@ public void pushTransMemoryProjectWithDifferentProjectName() {
projectWorkFlow.createNewProjectVersion("trans memory test v2",
"master");

// @formatter:off
// @formatter:off
// int exitCode = new ClientPushWorkFlow().mvnPush("trans-memory",
// "-Dzanata.projectConfig=differentProject/zanata.xml",
// "-Dzanata.projectVersion=master",
// "-Dzanata.copyTrans=false",
// "-Dzanata.pushType=Source");
// @formatter:on
// @formatter:on

// assertThat(exitCode, Matchers.equalTo(0));
}
Expand Down
Expand Up @@ -12,12 +12,12 @@
@RunWith(Suite.class)
// @formatter:off
@Suite.SuiteClasses({GlossaryTest.class,
GlossaryPushTest.class,
InvalidGlossaryPushTest.class,
GlossaryPushCSVTest.class,
UnauthorizedGlossaryDeleteTest.class,
UnauthorizedGlossaryPushTest.class,
GlossaryDeleteTest.class
GlossaryPushTest.class,
InvalidGlossaryPushTest.class,
GlossaryPushCSVTest.class,
UnauthorizedGlossaryDeleteTest.class,
UnauthorizedGlossaryPushTest.class,
GlossaryDeleteTest.class
})
// @formatter:on
public class GlossaryTestSuite {
Expand Down
Expand Up @@ -31,13 +31,13 @@
@RunWith(Suite.class)
// @formatter:off
@Suite.SuiteClasses({
StartNewProjectTest.class,
CreateNewProjectTest.class,
CreateVersionAndAddToProjectTest.class,
AddLanguageTest.class,
TranslatorJoinsLanguageTeamTest.class,
PushPodirPluralProjectTest.class,
DocumentListInWebTransTest.class
StartNewProjectTest.class,
CreateNewProjectTest.class,
CreateVersionAndAddToProjectTest.class,
AddLanguageTest.class,
TranslatorJoinsLanguageTeamTest.class,
PushPodirPluralProjectTest.class,
DocumentListInWebTransTest.class
})
// @formatter:on
public class CreateSampleProjectTestSuite {
Expand Down
43 changes: 21 additions & 22 deletions zanata-model/src/test/java/org/zanata/util/OkapiUtilTest.java
Expand Up @@ -9,32 +9,31 @@

@Test(groups = { "unit-tests" })
public class OkapiUtilTest {
// @formatter:off
String[] strings =
{
"<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>",
"Graphic Design",
"the object is passed up to the UI tier",
// @formatter:off
String[] strings = {
"<author><firstname>Emmanuel</firstname> <surname>Bernard</surname></author>",
"Graphic Design",
"the object is passed up to the UI tier",

"// in the first session\n" +
"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n" +
"\n" +
"// in a higher tier of the application\n" +
"Cat mate = new Cat();\n" +
"cat.setMate(mate);\n" +
"\n" +
"// later, in a new session\n" +
"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-null id)\n" +
"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null id)",
"// in the first session\n" +
"Cat cat = (Cat) firstSession.load(Cat.class, catID);\n" +
"\n" +
"// in a higher tier of the application\n" +
"Cat mate = new Cat();\n" +
"cat.setMate(mate);\n" +
"\n" +
"// later, in a new session\n" +
"secondSession.saveOrUpdate(cat); // update existing state (cat has a non-null id)\n" +
"secondSession.saveOrUpdate(mate); // save the new instance (mate has a null id)",

"<filename class=\"directory\">/var/lib/ricci</filename>",
"<filename class=\"directory\">/var/lib/ricci</filename>",

"https://cdn.redhat.com", // NB okapi says 2, but looks like 4. perhaps
// something.ext counts as one word?
"https://cdn.redhat.com", // NB okapi says 2, but looks like 4. perhaps
// something.ext counts as one word?

"/etc/rhsm/rhsm.conf", // NB okapi says 3, but looks like 4
};
// @formatter:on
"/etc/rhsm/rhsm.conf", // NB okapi says 3, but looks like 4
};
// @formatter:on
// These counts represent the expected word counts for the strings listed
// above.
long[] count = { 2, 2, 9,
Expand Down

0 comments on commit 0857cb7

Please sign in to comment.