Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONDRIAN: fix java files to follow coding conventions: comments added…
…, no tabs [git-p4: depot-paths = "//open/mondrian/": change = 8918]
- Loading branch information
Khanh Vu
committed
Mar 21, 2007
1 parent
cca3548
commit 271c0e2
Showing
10 changed files
with
372 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,52 @@ | ||
/* | ||
// $Id$ | ||
// This software is subject to the terms of the Common Public License | ||
// Agreement, available at the following URL: | ||
// http://www.opensource.org/licenses/cpl.html. | ||
// Copyright (C) 2007 Julian Hyde and others | ||
// All Rights Reserved. | ||
// You must accept the terms of that agreement to use this software. | ||
// | ||
*/ | ||
package mondrian.test.clearview; | ||
|
||
import junit.framework.*; | ||
|
||
import mondrian.test.*; | ||
|
||
/** | ||
* <code>CVBasicTest</code> is a test suite which tests | ||
* complex queries against the FoodMart database. MDX queries and their | ||
* expected results are maintained separately in CVBasicTest.ref.xml file. | ||
* If you would prefer to see them as inlined Java string literals, run | ||
* ant target "generateDiffRepositoryJUnit" and then use | ||
* file CVBasicTestJUnit.java which will be generated in this directory. | ||
* | ||
* @author Khanh Vu | ||
* @version $Id$ | ||
*/ | ||
public class CVBasicTest extends ClearViewBase { | ||
public CVBasicTest() { | ||
super(); | ||
} | ||
public CVBasicTest(String name) { | ||
super(name); | ||
} | ||
|
||
protected DiffRepository getDiffRepos() { | ||
return getDiffReposStatic(); | ||
} | ||
private static DiffRepository getDiffReposStatic() { | ||
return DiffRepository.lookup(CVBasicTest.class); | ||
} | ||
public static TestSuite suite() { | ||
return constructSuite(getDiffReposStatic(), CVBasicTest.class); | ||
} | ||
|
||
public CVBasicTest() { | ||
super(); | ||
} | ||
|
||
public CVBasicTest(String name) { | ||
super(name); | ||
} | ||
|
||
protected DiffRepository getDiffRepos() { | ||
return getDiffReposStatic(); | ||
} | ||
|
||
private static DiffRepository getDiffReposStatic() { | ||
return DiffRepository.lookup(CVBasicTest.class); | ||
} | ||
|
||
public static TestSuite suite() { | ||
return constructSuite(getDiffReposStatic(), CVBasicTest.class); | ||
} | ||
|
||
} | ||
|
||
// End CVBasicTest.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,52 @@ | ||
/* | ||
// $Id$ | ||
// This software is subject to the terms of the Common Public License | ||
// Agreement, available at the following URL: | ||
// http://www.opensource.org/licenses/cpl.html. | ||
// Copyright (C) 2007 Julian Hyde and others | ||
// All Rights Reserved. | ||
// You must accept the terms of that agreement to use this software. | ||
// | ||
*/ | ||
package mondrian.test.clearview; | ||
|
||
import junit.framework.*; | ||
|
||
import mondrian.test.*; | ||
|
||
/** | ||
* <code>GrandTotalTest</code> is a test suite which tests scenarios of | ||
* using grand total against the FoodMart database. MDX queries and their | ||
* expected results are maintained separately in GrandTotalTest.ref.xml file. | ||
* If you would prefer to see them as inlined Java string literals, run | ||
* ant target "generateDiffRepositoryJUnit" and then use | ||
* file GrandTotalTestJUnit.java which will be generated in this directory. | ||
* | ||
* @author Khanh Vu | ||
* @version $Id$ | ||
*/ | ||
public class GrandTotalTest extends ClearViewBase { | ||
public GrandTotalTest() { | ||
super(); | ||
} | ||
public GrandTotalTest(String name) { | ||
super(name); | ||
} | ||
|
||
protected DiffRepository getDiffRepos() { | ||
return getDiffReposStatic(); | ||
} | ||
private static DiffRepository getDiffReposStatic() { | ||
return DiffRepository.lookup(GrandTotalTest.class); | ||
} | ||
public static TestSuite suite() { | ||
return constructSuite(getDiffReposStatic(), GrandTotalTest.class); | ||
} | ||
|
||
public GrandTotalTest() { | ||
super(); | ||
} | ||
|
||
public GrandTotalTest(String name) { | ||
super(name); | ||
} | ||
|
||
protected DiffRepository getDiffRepos() { | ||
return getDiffReposStatic(); | ||
} | ||
|
||
private static DiffRepository getDiffReposStatic() { | ||
return DiffRepository.lookup(GrandTotalTest.class); | ||
} | ||
|
||
public static TestSuite suite() { | ||
return constructSuite(getDiffReposStatic(), GrandTotalTest.class); | ||
} | ||
|
||
} | ||
|
||
// End GranTotalTest.java |
64 changes: 44 additions & 20 deletions
64
testsrc/main/mondrian/test/clearview/MetricFilterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,53 @@ | ||
/* | ||
// $Id$ | ||
// This software is subject to the terms of the Common Public License | ||
// Agreement, available at the following URL: | ||
// http://www.opensource.org/licenses/cpl.html. | ||
// Copyright (C) 2007 Julian Hyde and others | ||
// All Rights Reserved. | ||
// You must accept the terms of that agreement to use this software. | ||
// | ||
*/ | ||
package mondrian.test.clearview; | ||
|
||
import junit.framework.*; | ||
|
||
import mondrian.test.*; | ||
|
||
/** | ||
* <code>MetricFilterTest</code> is a test suite which tests scenarios of | ||
* filtering out measures' values in the FoodMart database. | ||
* MDX queries and their expected results are maintained separately in | ||
* MetricFilterTest.ref.xml file.If you would prefer to see them as inlined | ||
* Java string literals, run ant target "generateDiffRepositoryJUnit" and | ||
* then use file MetricFilterTestJUnit.java which will be generated in | ||
* this directory. | ||
* | ||
* @author Khanh Vu | ||
* @version $Id$ | ||
*/ | ||
public class MetricFilterTest extends ClearViewBase { | ||
public MetricFilterTest() { | ||
super(); | ||
} | ||
public MetricFilterTest(String name) { | ||
super(name); | ||
} | ||
|
||
protected DiffRepository getDiffRepos() { | ||
return getDiffReposStatic(); | ||
} | ||
private static DiffRepository getDiffReposStatic() { | ||
return DiffRepository.lookup(MetricFilterTest.class); | ||
} | ||
public static TestSuite suite() { | ||
return constructSuite(getDiffReposStatic(), MetricFilterTest.class); | ||
} | ||
|
||
public MetricFilterTest() { | ||
super(); | ||
} | ||
|
||
public MetricFilterTest(String name) { | ||
super(name); | ||
} | ||
|
||
protected DiffRepository getDiffRepos() { | ||
return getDiffReposStatic(); | ||
} | ||
|
||
private static DiffRepository getDiffReposStatic() { | ||
return DiffRepository.lookup(MetricFilterTest.class); | ||
} | ||
|
||
public static TestSuite suite() { | ||
return constructSuite(getDiffReposStatic(), MetricFilterTest.class); | ||
} | ||
|
||
} | ||
|
||
// End MetricFilterTest.java |
64 changes: 44 additions & 20 deletions
64
testsrc/main/mondrian/test/clearview/PredicateFilterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,53 @@ | ||
/* | ||
// $Id$ | ||
// This software is subject to the terms of the Common Public License | ||
// Agreement, available at the following URL: | ||
// http://www.opensource.org/licenses/cpl.html. | ||
// Copyright (C) 2007 Julian Hyde and others | ||
// All Rights Reserved. | ||
// You must accept the terms of that agreement to use this software. | ||
// | ||
*/ | ||
package mondrian.test.clearview; | ||
|
||
import junit.framework.*; | ||
|
||
import mondrian.test.*; | ||
|
||
/** | ||
* <code>PredicateFilterTest</code> is a test suite which tests scenarios of | ||
* filtering in the FoodMart database. | ||
* MDX queries and their expected results are maintained separately in | ||
* PredicateFilterTest.ref.xml file.If you would prefer to see them as inlined | ||
* Java string literals, run ant target "generateDiffRepositoryJUnit" and | ||
* then use file PredicateFilterTestJUnit.java which will be generated in | ||
* this directory. | ||
* | ||
* @author Khanh Vu | ||
* @version $Id$ | ||
*/ | ||
public class PredicateFilterTest extends ClearViewBase { | ||
public PredicateFilterTest() { | ||
super(); | ||
} | ||
public PredicateFilterTest(String name) { | ||
super(name); | ||
} | ||
|
||
protected DiffRepository getDiffRepos() { | ||
return getDiffReposStatic(); | ||
} | ||
private static DiffRepository getDiffReposStatic() { | ||
return DiffRepository.lookup(PredicateFilterTest.class); | ||
} | ||
public static TestSuite suite() { | ||
return constructSuite(getDiffReposStatic(), PredicateFilterTest.class); | ||
} | ||
|
||
public PredicateFilterTest() { | ||
super(); | ||
} | ||
|
||
public PredicateFilterTest(String name) { | ||
super(name); | ||
} | ||
|
||
protected DiffRepository getDiffRepos() { | ||
return getDiffReposStatic(); | ||
} | ||
|
||
private static DiffRepository getDiffReposStatic() { | ||
return DiffRepository.lookup(PredicateFilterTest.class); | ||
} | ||
|
||
public static TestSuite suite() { | ||
return constructSuite(getDiffReposStatic(), PredicateFilterTest.class); | ||
} | ||
|
||
} | ||
|
||
// End PredicateFilterTest.java |
Oops, something went wrong.