Skip to content

Commit 324fa70

Browse files
authored
Merge pull request #2 from exasol/feature/1-Take_over_initial_version_from_Virtual_Schemas
Feature/1 take over initial version from virtual schemas
2 parents aa1d229 + 0a8f7d4 commit 324fa70

13 files changed

+441
-0
lines changed

.classpath

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10+
<attributes>
11+
<attribute name="optional" value="true"/>
12+
<attribute name="maven.pomderived" value="true"/>
13+
<attribute name="test" value="true"/>
14+
</attributes>
15+
</classpathentry>
16+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
17+
<attributes>
18+
<attribute name="maven.pomderived" value="true"/>
19+
</attributes>
20+
</classpathentry>
21+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
22+
<attributes>
23+
<attribute name="maven.pomderived" value="true"/>
24+
</attributes>
25+
</classpathentry>
26+
<classpathentry kind="output" path="target/classes"/>
27+
</classpath>

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/target/
2+
3+
# Eclipse and Maven
4+
.classpath
5+
.project
6+
bin
7+
target
8+
.cache
9+
10+
# Intellij
11+
.idea
12+
# Intellij recommends to share iml files, however, better don't share files which might be outdated
13+
*.iml

.project

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>java-util-logging-testing</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>

.settings/org.eclipse.jdt.core.prefs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3+
org.eclipse.jdt.core.compiler.compliance=1.5
4+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
5+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
6+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
7+
org.eclipse.jdt.core.compiler.release=disabled
8+
org.eclipse.jdt.core.compiler.source=1.5

.settings/org.eclipse.m2e.core.prefs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: java
2+
matrix:
3+
include:
4+
- jdk: openjdk9
5+
addons:
6+
sonarcloud:
7+
organization: exasol
8+
script:
9+
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=com.exasol:java-util-logging-testing -Dsonar.login=${SONAR_TOKEN}
10+
cache:
11+
directories:
12+
- "$HOME/.m2"

README.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Test Utilities for `java.util.logging`
2+
3+
[![Build Status](https://travis-ci.org/exasol/virtual-schemas.svg?branch=master)](https://travis-ci.org/exasol/virtual-schemas)
4+
5+
SonarCloud results:
6+
7+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
8+
9+
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=security_rating)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
10+
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
11+
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
12+
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=sqale_index)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
13+
14+
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=code_smells)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
15+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=coverage)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
16+
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
17+
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Ajava-util-logging-testing&metric=ncloc)](https://sonarcloud.io/dashboard?id=com.exasol%3Ajava-util-logging-testing)
18+
19+
# Overview
20+
21+
The Exasol's testing utilities for `java.util.logging` allow testing log message creation in software that uses the `java.util.logging` framework.
22+
23+
## Utilities
24+
25+
## `CapturingLogHandler`
26+
27+
Add this log handler if you want to record log messages created by your software and check the contents as part of unit tests.
28+
29+
## Customer Support
30+
31+
This is an open source project which is officially supported by Exasol. For any question, you can contact our support team.
32+
33+
## Dependencies
34+
35+
### Run Time Dependencies
36+
37+
Running the Virtual Schema requires a Java Runtime version 9 or later.
38+
39+
### Build Time Dependencies
40+
41+
| Dependency | Purpose | License |
42+
|-------------------------------------------------------------------------------------|--------------------------------------------------------|-------------------------------|
43+
| [Java Hamcrest](http://hamcrest.org/JavaHamcrest/) | Checking for conditions in code via matchers | BSD License |
44+
| [JUnit](https://junit.org/junit5) | Unit testing framework | Eclipse Public License 1.0 |
45+
46+
# License
47+
48+
This software is licensed under the [MIT license](LICENSE).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
3+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4+
<listEntry value="/java-util-logging-testing"/>
5+
</listAttribute>
6+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7+
<listEntry value="4"/>
8+
</listAttribute>
9+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
10+
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
11+
<listEntry value="org.eclipse.eclemma.ui.launchGroup.coverage"/>
12+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
13+
</listAttribute>
14+
<listAttribute key="org.eclipse.eclemma.core.SCOPE_IDS">
15+
<listEntry value="=java-util-logging-testing/src\/main\/java"/>
16+
</listAttribute>
17+
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value="=java-util-logging-testing"/>
18+
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
19+
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
20+
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit5"/>
21+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
22+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
23+
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
24+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
25+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="java-util-logging-testing"/>
26+
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
27+
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea"/>
28+
</launchConfiguration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
3+
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
4+
<stringAttribute key="M2_GOALS" value="install"/>
5+
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
6+
<booleanAttribute key="M2_OFFLINE" value="false"/>
7+
<stringAttribute key="M2_PROFILES" value=""/>
8+
<listAttribute key="M2_PROPERTIES"/>
9+
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
10+
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
11+
<intAttribute key="M2_THREADS" value="1"/>
12+
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
13+
<stringAttribute key="M2_USER_SETTINGS" value=""/>
14+
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
15+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
16+
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk-9.0.4"/>
17+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/java-util-logging-testing}"/>
18+
</launchConfiguration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
3+
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
4+
<stringAttribute key="M2_GOALS" value="package"/>
5+
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
6+
<booleanAttribute key="M2_OFFLINE" value="false"/>
7+
<stringAttribute key="M2_PROFILES" value=""/>
8+
<listAttribute key="M2_PROPERTIES"/>
9+
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
10+
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
11+
<intAttribute key="M2_THREADS" value="1"/>
12+
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
13+
<stringAttribute key="M2_USER_SETTINGS" value=""/>
14+
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
15+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
16+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/java-util-logging-testing}"/>
17+
</launchConfiguration>

pom.xml

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.exasol</groupId>
6+
<artifactId>java-util-logging-testing</artifactId>
7+
<version>${product.version}</version>
8+
<name>Test utilities for `java.util.logging`</name>
9+
<description>This project provides utilities that help testing software that uses `java.util.logging` as its logging framework.</description>
10+
<url>https://github.com/exasol/java-util-logging-testing</url>
11+
<properties>
12+
<product.version>1.0.0</product.version>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
15+
<java.version>9</java.version>
16+
<junit.version>5.4.2</junit.version>
17+
<junit.platform.version>1.4.2</junit.platform.version>
18+
<maven.surefire.version>3.0.0-M3</maven.surefire.version>
19+
<gpg.skip>true</gpg.skip>
20+
</properties>
21+
<licenses>
22+
<license>
23+
<name>MIT</name>
24+
<url>https://opensource.org/licenses/MIT</url>
25+
<distribution>repo</distribution>
26+
</license>
27+
</licenses>
28+
<developers>
29+
<developer>
30+
<name>Exasol</name>
31+
<email>[email protected]</email>
32+
<organization>Exasol AG</organization>
33+
<organizationUrl>https://www.exasol.com/</organizationUrl>
34+
</developer>
35+
</developers>
36+
<scm>
37+
<connection>scm:git:https://github.com/exasol/java-util-logging-testing.git</connection>
38+
<developerConnection>scm:git:https://github.com/exasol/java-util-logging-testing.git</developerConnection>
39+
<url>https://github.com/exasol/java-util-logging-testing/tree/master</url>
40+
</scm>
41+
<distributionManagement>
42+
<snapshotRepository>
43+
<id>ossrh</id>
44+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
45+
</snapshotRepository>
46+
<repository>
47+
<id>ossrh</id>
48+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
49+
</repository>
50+
</distributionManagement>
51+
<repositories>
52+
<repository>
53+
<id>maven.exasol.com</id>
54+
<url>https://maven.exasol.com/artifactory/exasol-releases</url>
55+
<snapshots>
56+
<enabled>false</enabled>
57+
</snapshots>
58+
</repository>
59+
<repository>
60+
<id>maven.exasol.com-snapshots</id>
61+
<url>https://maven.exasol.com/artifactory/exasol-snapshots</url>
62+
<snapshots>
63+
<enabled>true</enabled>
64+
</snapshots>
65+
</repository>
66+
</repositories>
67+
<dependencies>
68+
<dependency>
69+
<groupId>org.junit.jupiter</groupId>
70+
<artifactId>junit-jupiter-engine</artifactId>
71+
<version>${junit.version}</version>
72+
<scope>test</scope>
73+
</dependency>
74+
<dependency>
75+
<groupId>org.hamcrest</groupId>
76+
<artifactId>hamcrest</artifactId>
77+
<version>2.1</version>
78+
<scope>test</scope>
79+
</dependency>
80+
</dependencies>
81+
<build>
82+
<plugins>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-compiler-plugin</artifactId>
86+
<version>3.2</version>
87+
<configuration>
88+
<source>${java.version}</source>
89+
<target>${java.version}</target>
90+
</configuration>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.jacoco</groupId>
94+
<artifactId>jacoco-maven-plugin</artifactId>
95+
<version>0.8.3</version>
96+
<executions>
97+
<execution>
98+
<goals>
99+
<goal>prepare-agent</goal>
100+
</goals>
101+
</execution>
102+
<execution>
103+
<id>report</id>
104+
<phase>test</phase>
105+
<goals>
106+
<goal>report</goal>
107+
</goals>
108+
</execution>
109+
</executions>
110+
</plugin>
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-surefire-plugin</artifactId>
114+
<version>${maven.surefire.version}</version>
115+
</plugin>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-source-plugin</artifactId>
119+
<version>3.0.1</version>
120+
<executions>
121+
<execution>
122+
<id>attach-sources</id>
123+
<goals>
124+
<goal>jar</goal>
125+
</goals>
126+
</execution>
127+
</executions>
128+
</plugin>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-javadoc-plugin</artifactId>
132+
<version>3.0.1</version>
133+
<executions>
134+
<execution>
135+
<id>attach-javadocs</id>
136+
<goals>
137+
<goal>jar</goal>
138+
</goals>
139+
</execution>
140+
</executions>
141+
<configuration>
142+
<charset>UTF-8</charset>
143+
<doclint />
144+
<serialwarn>true</serialwarn>
145+
<failOnError>true</failOnError>
146+
<failOnWarnings>true</failOnWarnings>
147+
</configuration>
148+
</plugin>
149+
<plugin>
150+
<groupId>org.apache.maven.plugins</groupId>
151+
<artifactId>maven-gpg-plugin</artifactId>
152+
<version>1.6</version>
153+
<executions>
154+
<execution>
155+
<id>sign-artifacts</id>
156+
<phase>verify</phase>
157+
<goals>
158+
<goal>sign</goal>
159+
</goals>
160+
</execution>
161+
</executions>
162+
</plugin>
163+
</plugins>
164+
</build>
165+
</project>

0 commit comments

Comments
 (0)