org.spockframework.runtime
Class JUnitSorterAdapter

java.lang.Object
  extended by org.spockframework.runtime.JUnitSorterAdapter
All Implemented Interfaces:
java.util.Comparator<FeatureInfo>, IFeatureSortOrder

public class JUnitSorterAdapter
extends java.lang.Object
implements IFeatureSortOrder

Adapts an org.junit.runner.manipulation.Sorter to a IMethodInfoSorter.

Author:
Peter Niederwieser

Constructor Summary
JUnitSorterAdapter(org.junit.runner.manipulation.Sorter sorter)
           
 
Method Summary
 int compare(FeatureInfo m1, FeatureInfo m2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

JUnitSorterAdapter

public JUnitSorterAdapter(org.junit.runner.manipulation.Sorter sorter)
Method Detail

compare

public int compare(FeatureInfo m1,
                   FeatureInfo m2)
Specified by:
compare in interface java.util.Comparator<FeatureInfo>


Copyright © 2013. All rights reserved