java - WildcardPatternSuite finds no classes -


i'm trying use wildcardpatternsuite junit-toolbox, testsuite fails with

java.lang.exception: failed scan c:\users\ms\workspaces\comet4\pubservertests\build\com\priint\pubserver\tests\testsuites using wildcard patterns [**/*test.class] -- org.junit.runners.model.initializationerror     @ org.junit.runners.model.initializationerror.<init>(initializationerror.java:32)     @ com.googlecode.junittoolbox.wildcardpatternsuite.findsuiteclasses(wildcardpatternsuite.java:128)     @ com.googlecode.junittoolbox.wildcardpatternsuite.getsuiteclasses(wildcardpatternsuite.java:54)     @ com.googlecode.junittoolbox.wildcardpatternsuite.<init>(wildcardpatternsuite.java:180)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:57)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)     @ java.lang.reflect.constructor.newinstance(constructor.java:526)     @ org.junit.internal.builders.annotatedbuilder.buildrunner(annotatedbuilder.java:33)     @ org.junit.internal.builders.annotatedbuilder.runnerforclass(annotatedbuilder.java:21)     @ org.junit.runners.model.runnerbuilder.saferunnerforclass(runnerbuilder.java:59)     @ org.junit.internal.builders.alldefaultpossibilitiesbuilder.runnerforclass(alldefaultpossibilitiesbuilder.java:26)     @ org.junit.runners.model.runnerbuilder.saferunnerforclass(runnerbuilder.java:59)     @ org.junit.internal.requests.classrequest.getrunner(classrequest.java:26)     @ org.eclipse.jdt.internal.junit4.runner.junit4testreference.<init>(junit4testreference.java:33)     @ org.eclipse.jdt.internal.junit4.runner.junit4testclassreference.<init>(junit4testclassreference.java:25)     @ org.eclipse.jdt.internal.junit4.runner.junit4testloader.createtest(junit4testloader.java:48)     @ org.eclipse.jdt.internal.junit4.runner.junit4testloader.loadtests(junit4testloader.java:38)     @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:452)     @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:683)     @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner.java:390)     @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner.java:197) 

the code is

package com.priint.pubserver.tests.testsuites; import org.junit.runner.runwith; import com.googlecode.junittoolbox.suiteclasses; import com.googlecode.junittoolbox.wildcardpatternsuite; @runwith(wildcardpatternsuite.class) @suiteclasses({"**/*test.class"}) public class alltests {} 

the test classes in packages below com.priint.pubserver. , called *test, i.e. entitytest.

i'm using eclipse 4.3 , starting test suite "run -> junit test"

what's wrong here?

edit: seems pattern "**/*test.class" start @ current package, i.e. finds no classes in packages "above" current package. there pattern traverses "up"?

move class package super package of classes shall run test suite.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -