patterntesting.runtime
Class SmokeTest

Package class diagram package SmokeTest
java.lang.Object
  extended by patterntesting.runtime.SmokeTest

public class SmokeTest
extends Object

This tests checks some preconditions for PatternTesting Runtime. If one of these tests fails PatternTesting may work not correct. This class is part of src/main/java so that everybody can call this tests to check if one of the preconditions are broken.
This class is not final so that you can extend it for your own needs.

Since:
1.0.2 (29.07.2010)
Author:
oliver

Constructor Summary
SmokeTest()
           
 
Method Summary
 void testCommonsIO()
          For the ClasspathMonitor and ClassWalker we need the commons-io lib.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmokeTest

public SmokeTest()
Method Detail

testCommonsIO

public final void testCommonsIO()
For the ClasspathMonitor and ClassWalker we need the commons-io lib. And at least version 1.3.1 of commons-io is needed because the FileFilter and DirectoryWalker of this lib is used.
If you use commons-io-1.2 you may get a NoSuchMethodError and
 java.lang.NoSuchMethodError: org.apache.commons.io.filefilter.FileFilterUtils.fileFileFilter()Lorg/apache/commons/io/filefilter/IOFileFilter;
    patterntesting.runtime.monitor.ClassWalker.getFileFilter(ClassWalker.java:65)
    patterntesting.runtime.monitor.ClassWalker.(ClassWalker.java:48)
    patterntesting.runtime.monitor.ClasspathMonitor.addClassesFromDir_aroundBody38(ClasspathMonitor.java:884)
    patterntesting.runtime.monitor.ClasspathMonitor.addClassesFromDir_aroundBody39$advice(ClasspathMonitor.java:49)
    patterntesting.runtime.monitor.ClasspathMonitor.addClassesFromDir(ClasspathMonitor.java:1)
    patterntesting.runtime.monitor.ClasspathMonitor.addClasses(ClasspathMonitor.java:864)
    patterntesting.runtime.monitor.ClasspathMonitor.getClasspathClassSet_aroundBody36(ClasspathMonitor.java:847)
    patterntesting.runtime.monitor.ClasspathMonitor.getClasspathClassSet_aroundBody37$advice(ClasspathMonitor.java:49)
    patterntesting.runtime.monitor.ClasspathMonitor.getClasspathClassSet(ClasspathMonitor.java:1)
    patterntesting.runtime.monitor.ClasspathMonitor.(ClasspathMonitor.java:119)
    patterntesting.runtime.monitor.ClasspathMonitor.(ClasspathMonitor.java:109)
    ...
 
as stacktrace.



Copyright © 2002–2014 PatternTesting Team. All rights reserved.