You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Graham Leggett (Jira)" <ji...@apache.org> on 2022/06/13 09:43:00 UTC

[jira] [Updated] (JCR-4798) jackrabbit-spi2dav: Unit test org.apache.jackrabbit.spi2dav.ConnectionTest has no effect

     [ https://issues.apache.org/jira/browse/JCR-4798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Graham Leggett updated JCR-4798:
--------------------------------
    Description: 
The unit test
org.apache.jackrabbit.spi2dav.ConnectionTest
 is included as a test to be run in the maven-surefire-plugin, and the test goes through the motions of being run, but none of the test methods are executed.

The test is marked as successful from maven:
{code:java}
[INFO] Running org.apache.jackrabbit.spi2dav.ConnectionTest
10:57:14,186 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback-test.xml] at [file:/Users/minfrin/src/apache/sandbox/jackrabbit/rackjabbit-trunk/jackrabbit-spi2dav/target/test-classes/logback-test.xml]
10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs multiple times on the classpath.
10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs at [jar:file:/Users/minfrin/.m2/repository/org/apache/jackrabbit/jackrabbit-jcr-server/2.21.12-SNAPSHOT/jackrabbit-jcr-server-2.21.12-SNAPSHOT-tests.jar!/logback-test.xml]
10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs at [file:/Users/minfrin/src/apache/sandbox/jackrabbit/rackjabbit-trunk/jackrabbit-spi2dav/target/test-classes/logback-test.xml]
10:57:14,290 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:57:14,290 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
10:57:14,294 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [file]
10:57:14,299 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:57:14,327 |-INFO in ch.qos.logback.core.FileAppender[file] - File property is set to [target/jcr.log]
10:57:14,328 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
10:57:14,328 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file] to Logger[ROOT]
10:57:14,328 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
10:57:14,329 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@69fb6037 - Registering current configuration as safe fallback point


[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 s - in org.apache.jackrabbit.spi2dav.ConnectionTest
 {code}
Inserting breakpoints in a debugger, the breakpoints are never fired, inserting an explicit fail into a test, the fail is never triggered.

It is not clear what is causing these tests to be skipped, but the test as it stands does nothing at this time.

 

  was:
The unit test [org|eclipse-javadoc:%E2%98%82=jackrabbit-spi2dav/src%5C/test%5C/java=/optional=/true=/=/maven.pomderived=/true=/=/test=/true=/%3Corg].[apache|eclipse-javadoc:%E2%98%82=jackrabbit-spi2dav/src%5C/test%5C/java=/optional=/true=/=/maven.pomderived=/true=/=/test=/true=/%3Corg.apache].[jackrabbit|eclipse-javadoc:%E2%98%82=jackrabbit-spi2dav/src%5C/test%5C/java=/optional=/true=/=/maven.pomderived=/true=/=/test=/true=/%3Corg.apache.jackrabbit].[spi2dav|eclipse-javadoc:%E2%98%82=jackrabbit-spi2dav/src%5C/test%5C/java=/optional=/true=/=/maven.pomderived=/true=/=/test=/true=/%3Corg.apache.jackrabbit.spi2dav].ConnectionTest is included as a test to be run in the maven-surefire-plugin, and the test goes through the motions of being run, but none of the test methods are executed.

The test is marked as successful from maven:
{code:java}
[INFO] Running org.apache.jackrabbit.spi2dav.ConnectionTest
10:57:14,186 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback-test.xml] at [file:/Users/minfrin/src/apache/sandbox/jackrabbit/rackjabbit-trunk/jackrabbit-spi2dav/target/test-classes/logback-test.xml]
10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs multiple times on the classpath.
10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs at [jar:file:/Users/minfrin/.m2/repository/org/apache/jackrabbit/jackrabbit-jcr-server/2.21.12-SNAPSHOT/jackrabbit-jcr-server-2.21.12-SNAPSHOT-tests.jar!/logback-test.xml]
10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs at [file:/Users/minfrin/src/apache/sandbox/jackrabbit/rackjabbit-trunk/jackrabbit-spi2dav/target/test-classes/logback-test.xml]
10:57:14,290 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:57:14,290 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
10:57:14,294 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [file]
10:57:14,299 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:57:14,327 |-INFO in ch.qos.logback.core.FileAppender[file] - File property is set to [target/jcr.log]
10:57:14,328 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
10:57:14,328 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file] to Logger[ROOT]
10:57:14,328 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
10:57:14,329 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@69fb6037 - Registering current configuration as safe fallback point


[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 s - in org.apache.jackrabbit.spi2dav.ConnectionTest
 {code}
Inserting breakpoints in a debugger, the breakpoints are never fired, inserting an explicit fail into a test, the fail is never triggered.

It is not clear what is causing these tests to be skipped, but the test as it stands does nothing at this time.

 


> jackrabbit-spi2dav: Unit test org.apache.jackrabbit.spi2dav.ConnectionTest has no effect
> ----------------------------------------------------------------------------------------
>
>                 Key: JCR-4798
>                 URL: https://issues.apache.org/jira/browse/JCR-4798
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-spi2dav
>    Affects Versions: 2.21.12
>            Reporter: Graham Leggett
>            Priority: Major
>
> The unit test
> org.apache.jackrabbit.spi2dav.ConnectionTest
>  is included as a test to be run in the maven-surefire-plugin, and the test goes through the motions of being run, but none of the test methods are executed.
> The test is marked as successful from maven:
> {code:java}
> [INFO] Running org.apache.jackrabbit.spi2dav.ConnectionTest
> 10:57:14,186 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback-test.xml] at [file:/Users/minfrin/src/apache/sandbox/jackrabbit/rackjabbit-trunk/jackrabbit-spi2dav/target/test-classes/logback-test.xml]
> 10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs multiple times on the classpath.
> 10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs at [jar:file:/Users/minfrin/.m2/repository/org/apache/jackrabbit/jackrabbit-jcr-server/2.21.12-SNAPSHOT/jackrabbit-jcr-server-2.21.12-SNAPSHOT-tests.jar!/logback-test.xml]
> 10:57:14,186 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback-test.xml] occurs at [file:/Users/minfrin/src/apache/sandbox/jackrabbit/rackjabbit-trunk/jackrabbit-spi2dav/target/test-classes/logback-test.xml]
> 10:57:14,290 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
> 10:57:14,290 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
> 10:57:14,294 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [file]
> 10:57:14,299 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
> 10:57:14,327 |-INFO in ch.qos.logback.core.FileAppender[file] - File property is set to [target/jcr.log]
> 10:57:14,328 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
> 10:57:14,328 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [file] to Logger[ROOT]
> 10:57:14,328 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
> 10:57:14,329 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@69fb6037 - Registering current configuration as safe fallback point
> [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 s - in org.apache.jackrabbit.spi2dav.ConnectionTest
>  {code}
> Inserting breakpoints in a debugger, the breakpoints are never fired, inserting an explicit fail into a test, the fail is never triggered.
> It is not clear what is causing these tests to be skipped, but the test as it stands does nothing at this time.
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)