Skip to content

OC-194: rename classes to org.openclover #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ under the License.
</prerequisites>
<properties>
<!-- Clover Core version -->
<cloverVersion>4.5.2</cloverVersion>
<cloverVersion>4.6.0-SNAPSHOT</cloverVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gpg.skip>true</gpg.skip>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.maven.plugin.clover.samples.allsrcexcluded;

public class Simple
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.maven.plugin.clover.samples.allsrcexcluded;

import junit.framework.TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.maven.plugin.clover.samples.contexts;

public class Simple {
public void someMethod1() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.atlassian.maven.plugin.clover.samples.contexts;

import org.junit.Test;

Expand Down
6 changes: 3 additions & 3 deletions src/it/contexts/src/test/verifier/verifications.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ under the License.
<contains>57.1%</contains>
</file>
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/contexts/SimpleTest.html</location>
<location>target/site/clover/SimpleTest.html</location>
<contains>Filtered by: simple</contains>
</file>
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/contexts/SimpleTest.html</location>
<location>target/site/clover/SimpleTest.html</location>
<contains>Filtered by: aggregated</contains>
</file>
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/contexts/SimpleTest.html</location>
<location>target/site/clover/SimpleTest.html</location>
<contains>Filtered by: any</contains>
</file>
</files>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugin.clover.samples.testsources;
package org.openclover.maven.samples;

public class Simple {
public static void main(String[] argv) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugin.clover.samples.testsources;
package org.openclover.maven.samples;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugin.clover.samples.testsources;
package org.openclover.maven.samples;

import static org.junit.Assert.assertTrue;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugin.clover.samples.testsources;
package org.openclover.maven.samples;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugin.clover.samples.testsources;
package org.openclover.maven.samples;

import static org.junit.Assert.assertTrue;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugin.clover.samples.testsources;
package org.openclover.maven.samples;

/**
* A marker to test if OpenClover recognizes annotations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugin.clover.samples.testsources;
package org.openclover.maven.samples;

/**
* Simulate a base class for tests.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugin.clover.samples.testsources.classic;
package org.openclover.maven.samples.classic;

import static org.junit.Assert.assertTrue;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.atlassian.maven.plugin.clover.samples.testsources.excluded;
package org.openclover.maven.samples.excluded;

import com.atlassian.maven.plugin.clover.samples.testsources.ExampleOne;
import com.atlassian.maven.plugin.clover.samples.testsources.ExampleTwoIT;
import com.atlassian.maven.plugin.clover.samples.testsources.NoTestSuiteSoNotOne;
import com.atlassian.maven.plugin.clover.samples.testsources.NotExampleThree;
import com.atlassian.maven.plugin.clover.samples.testsources.TestSuite;
import com.atlassian.maven.plugin.clover.samples.testsources.classic.ExampleThree;
import org.openclover.maven.samples.ExampleOne;
import org.openclover.maven.samples.ExampleTwoIT;
import org.openclover.maven.samples.NoTestSuiteSoNotOne;
import org.openclover.maven.samples.NotExampleThree;
import org.openclover.maven.samples.TestSuite;
import org.openclover.maven.samples.classic.ExampleThree;
import org.junit.Before;
import org.junit.Test;

Expand Down
18 changes: 9 additions & 9 deletions src/it/custom-test-pattern/src/test/verifier/verifications.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,34 @@ under the License.
<files>
<!--com.atlassian.maven.plugin.clover.samples.testsources.classic.ExampleThree-->
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/classic/ExampleThree.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/classic/ExampleThree.html</location>
<contains>ExampleThree\.testExampleThree</contains>
</file>
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/classic/ExampleThree.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/classic/ExampleThree.html</location>
<contains>(?!ExampleThree\.testNotExampleThree)</contains>
</file>
<!--com.atlassian.maven.plugin.clover.samples.testsources.excluded.ExcludedOne-->
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/excluded/ExcludedOne.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/excluded/ExcludedOne.html</location>
<contains>No tests hitting this source file were found</contains>
</file>
<!--com.atlassian.maven.plugin.clover.samples.testsources.ExampleOne-->
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/ExampleOne.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/ExampleOne.html</location>
<contains>ExampleOne\.testExampleOne</contains>
</file>
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/ExampleOne.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/ExampleOne.html</location>
<contains>(?!ExampleOne\.notTestExampleOne)</contains>
</file>
<!--com.atlassian.maven.plugin.clover.samples.testsources.ExampleTwoIT-->
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/ExampleTwoIT.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/ExampleTwoIT.html</location>
<contains>ExampleTwoIT\.getRequest</contains>
</file>
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/ExampleTwoIT.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/ExampleTwoIT.html</location>
<contains>ExampleTwoIT\.postRequest</contains>
</file>
<!-- TODO uncomment when OC-96 is implemented -->
Expand All @@ -59,12 +59,12 @@ under the License.
</file>-->
<!--com.atlassian.maven.plugin.clover.samples.testsources.NoTestSuiteSoNotOne-->
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/NoTestSuiteSoNotOne.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/NoTestSuiteSoNotOne.html</location>
<contains>No tests hitting this source file were found</contains>
</file>
<!--com.atlassian.maven.plugin.clover.samples.testsources.NotExampleThree-->
<file>
<location>target/site/clover/com/atlassian/maven/plugin/clover/samples/testsources/NotExampleThree.html</location>
<location>target/site/clover/org/openclover/maven/samples/testsources/NotExampleThree.html</location>
<contains>No tests hitting this source file were found</contains>
</file>
</files>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
package com.atlassian.maven.plugins.sample;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.apache.maven.repository.RepositorySystem;
/**
* Change artifact classifier to 'fork'.
*/
@Mojo(name = "add-classifier")
public class AddClassifierMojo extends AbstractMojo {
@Parameter(defaultValue = "${project}", required = true)
private MavenProject project;
@Component
private RepositorySystem repositorySystem;
public void execute() {
final Artifact oldArtifact = project.getArtifact();
final Artifact newArtifact = repositorySystem.createArtifactWithClassifier(
oldArtifact.getGroupId(),
oldArtifact.getArtifactId(),
oldArtifact.getVersion(),
oldArtifact.getType(),
"fork");
project.setArtifact(newArtifact);
}
}
package org.openclover.maven.samples;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.apache.maven.repository.RepositorySystem;

/**
* Change artifact classifier to 'fork'.
*/
@Mojo(name = "add-classifier")
public class AddClassifierMojo extends AbstractMojo {

@Parameter(defaultValue = "${project}", required = true)
private MavenProject project;

@Component
private RepositorySystem repositorySystem;

public void execute() {
final Artifact oldArtifact = project.getArtifact();
final Artifact newArtifact = repositorySystem.createArtifactWithClassifier(
oldArtifact.getGroupId(),
oldArtifact.getArtifactId(),
oldArtifact.getVersion(),
oldArtifact.getType(),
"fork");
project.setArtifact(newArtifact);
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.atlassian.maven.plugins.sample;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
/**
* Fork a build life cycle and run till the 'install' phase.
*/
@Execute(phase = LifecyclePhase.INSTALL, goal = "fork", lifecycle = "fork")
@Mojo(name = "fork")
public class LifecycleForkMojo extends AbstractMojo {
public void execute() {
}
}
package org.openclover.maven.samples;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;

/**
* Fork a build life cycle and run till the 'install' phase.
*/
@Execute(phase = LifecyclePhase.INSTALL, goal = "fork", lifecycle = "fork")
@Mojo(name = "fork")
public class LifecycleForkMojo extends AbstractMojo {
public void execute() {

}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugins
package org.openclover.maven.samples

/**
* Example Groovy class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
package com.atlassian.maven.plugins

import groovy.util.GroovyTestCase

package org.openclover.maven.samples
/**
* Tests for the {@link Example} class.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugins
package org.openclover.maven.samples

/**
* Example Groovy class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugins;
package org.openclover.maven.samples;

/**
* Example Java class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
package com.atlassian.maven.plugins

import groovy.util.GroovyTestCase

package org.openclover.maven.samples
/**
* Tests for the {@link Example} class.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugins
package org.openclover.maven.samples

import groovy.util.GroovyTestCase

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugins
package org.openclover.maven.samples

/**
* GroovyExample Groovy class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.atlassian.maven.plugins
/**
* Test: file shall not be instrumented by Clover, but still compiled
*/
class GroovyExcludedFile {
def excluded() {
println 'GroovyExcludedFile.excluded: this shall not be in the report'
}
}
package org.openclover.maven.samples

/**
* Test: file shall not be instrumented by Clover, but still compiled
*/
class GroovyExcludedFile {
def excluded() {
println 'GroovyExcludedFile.excluded: this shall not be in the report'
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package com.atlassian.maven.plugins

package org.openclover.maven.samples
/**
* GroovyExample Java class.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugins;
package org.openclover.maven.samples;

/**
* GroovyExample Groovy class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.atlassian.maven.plugins;
/**
*
*/
public class JavaExcludedFile {
public void excluded() {
System.out.println("JavaExcludedFile.excluded: this shall not be in the report");
}
}
package org.openclover.maven.samples;

/**
*
*/
public class JavaExcludedFile {
public void excluded() {
System.out.println("JavaExcludedFile.excluded: this shall not be in the report");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.atlassian.maven.plugins;
package org.openclover.maven.samples;

/**
* GroovyExample Java class.
Expand Down
Loading