Repository: openmeetings Updated Branches: refs/heads/master e8a3e764e -> c08491a3f
[OPENMEETINGS-1714] more issues are fixed Project: http://git-wip-us.apache.org/repos/asf/openmeetings/repo Commit: http://git-wip-us.apache.org/repos/asf/openmeetings/commit/c08491a3 Tree: http://git-wip-us.apache.org/repos/asf/openmeetings/tree/c08491a3 Diff: http://git-wip-us.apache.org/repos/asf/openmeetings/diff/c08491a3 Branch: refs/heads/master Commit: c08491a3f88a4876ecd17b8440687631021543da Parents: e8a3e76 Author: Maxim Solodovnik <[email protected]> Authored: Sun Oct 1 01:24:41 2017 +0700 Committer: Maxim Solodovnik <[email protected]> Committed: Sun Oct 1 01:24:41 2017 +0700 ---------------------------------------------------------------------- .../apache/openmeetings/util/TestVersion.java | 51 ++++++++++++++++++++ pom.xml | 7 +++ 2 files changed, 58 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/openmeetings/blob/c08491a3/openmeetings-util/src/test/java/org/apache/openmeetings/util/TestVersion.java ---------------------------------------------------------------------- diff --git a/openmeetings-util/src/test/java/org/apache/openmeetings/util/TestVersion.java b/openmeetings-util/src/test/java/org/apache/openmeetings/util/TestVersion.java new file mode 100644 index 0000000..e766422 --- /dev/null +++ b/openmeetings-util/src/test/java/org/apache/openmeetings/util/TestVersion.java @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License") + you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openmeetings.util; + +import static org.apache.openmeetings.util.Version.getBuildDate; +import static org.apache.openmeetings.util.Version.getRevision; +import static org.apache.openmeetings.util.Version.getVersion; +import static org.apache.openmeetings.util.Version.logOMStarted; +import static org.junit.Assert.assertNotNull; + +import org.junit.Assert; +import org.junit.Test; + +public class TestVersion { + @Test + public void testVersion() { + assertNotNull(getVersion()); + } + + @Test + public void testBuildDate() { + assertNotNull(getBuildDate()); + } + + @Test + public void testRevision() { + assertNotNull(getRevision()); + } + + @Test + public void testLogVersion() { + logOMStarted(); + Assert.assertTrue(true); + } +} http://git-wip-us.apache.org/repos/asf/openmeetings/blob/c08491a3/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 60b6c6f..5f3272e 100644 --- a/pom.xml +++ b/pom.xml @@ -61,6 +61,9 @@ <sonar.host.url>https://builds.apache.org/analysis</sonar.host.url> <!-- Exclude all generated code --> <sonar.exclusions>file:**/generated-sources/**, file:**/fabric.js, file:**/cssemoticons.js, file:**/uuid.js, file:**/fileinput*.js</sonar.exclusions> + <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> + <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath> <db_user></db_user> <db_pass></db_pass> </properties> @@ -837,6 +840,10 @@ <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> + <configuration> + <destFile>${sonar.jacoco.reportPath}</destFile> + <append>true</append> + </configuration> <executions> <execution> <id>prepare-agent</id>
