当前位置: 首页>>代码示例>>Java>>正文


Java Sorter类代码示例

本文整理汇总了Java中org.junit.runner.manipulation.Sorter的典型用法代码示例。如果您正苦于以下问题:Java Sorter类的具体用法?Java Sorter怎么用?Java Sorter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Sorter类属于org.junit.runner.manipulation包,在下文中一共展示了Sorter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SorterUtil

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
/**
 * Creates a new instance of {@link SorterUtil}.
 */
private SorterUtil() {
  final String propertySorter = System.getProperty(PROPERTY_SORTER, EMPTY);
  if (SORTER_ALPHANUMERIC.equalsIgnoreCase(propertySorter)) {
    sorter = new Sorter(new Comparator<Description>() {
      public int compare(final Description o1, final Description o2) {
        return o1.getDisplayName().compareTo(o2.getDisplayName());
      }
    });
  } else {
    sorter = Sorter.NULL;
  }
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:16,代码来源:SorterUtil.java

示例2: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
public void sort(Sorter sorter) {
    fSorter = sorter;
    for (FrameworkMethod each : getOriginalFilteredChildren()) {
        sortChild(each);
    }
    Collections.sort(getOriginalFilteredChildren(), comparator());
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:LoadTimeWeavableTestRunner.java

示例3: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
public void sort(Sorter sorter) {
    synchronized (fChildrenLock) {
        for (T each : getFilteredChildren()) {
            sorter.apply(each);
        }
        List<T> sortedChildren = new ArrayList<T>(getFilteredChildren());
        Collections.sort(sortedChildren, comparator(sorter));
        fFilteredChildren = Collections.unmodifiableCollection(sortedChildren);
    }
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:11,代码来源:ParentRunner.java

示例4: comparator

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
private Comparator<? super T> comparator(final Sorter sorter) {
    return new Comparator<T>() {
        public int compare(T o1, T o2) {
            return sorter.compare(describeChild(o1), describeChild(o2));
        }
    };
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:8,代码来源:ParentRunner.java

示例5: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
@Override
public void sort(Sorter sorter) {
  // it is not sure that the custom runner support sorting so sorting is done
  // here too.
  if (mRunner instanceof Sortable) {
    Sortable sortableRunner = (Sortable) mRunner;
    sortableRunner.sort(sorter);
  }
}
 
开发者ID:Lucas3oo,项目名称:jicunit,代码行数:10,代码来源:JicUnitRunner.java

示例6: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
public void sort(final Sorter sorter) {
    Collections.sort(fTestMethods, new Comparator<Method>() {
        public int compare(Method o1, Method o2) {
            return sorter.compare(methodDescription(o1), methodDescription(o2));
        }
    });
}
 
开发者ID:lcm-proj,项目名称:lcm,代码行数:8,代码来源:JUnit4ClassRunner.java

示例7: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
public void sort(Sorter sorter) {
    fSorter = sorter;
    for (T each : getFilteredChildren()) {
        sortChild(each);
    }
    Collections.sort(getFilteredChildren(), comparator());
}
 
开发者ID:lcm-proj,项目名称:lcm,代码行数:8,代码来源:ParentRunner.java

示例8: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
public void sort(Sorter sorter) {
    synchronized (childrenLock) {
        for (FrameworkMethod each : getFilteredChildren()) {
            sorter.apply(each);
        }
        List<FrameworkMethod> sortedChildren = new ArrayList<FrameworkMethod>(getFilteredChildren());
        Collections.sort(sortedChildren, comparator(sorter));
        filteredChildren = Collections.unmodifiableCollection(sortedChildren);
    }
}
 
开发者ID:naver,项目名称:pinpoint,代码行数:11,代码来源:PinpointPluginTestRunner.java

示例9: comparator

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
private Comparator<? super FrameworkMethod> comparator(final Sorter sorter) {
    return new Comparator<FrameworkMethod>() {
        public int compare(FrameworkMethod o1, FrameworkMethod o2) {
            return sorter.compare(describeChild(o1), describeChild(o2));
        }
    };
}
 
开发者ID:naver,项目名称:pinpoint,代码行数:8,代码来源:PinpointPluginTestRunner.java

示例10: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
public void sort(Sorter sorter) {
    synchronized (childrenLock) {
        for (Runner each : getFilteredChildren()) {
            sorter.apply(each);
        }
        List<Runner> sortedChildren = new ArrayList<Runner>(getFilteredChildren());
        Collections.sort(sortedChildren, comparator(sorter));
        filteredChildren = Collections.unmodifiableCollection(sortedChildren);
    }
}
 
开发者ID:naver,项目名称:pinpoint,代码行数:11,代码来源:PinpointPluginTestSuite.java

示例11: comparator

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
private Comparator<? super Runner> comparator(final Sorter sorter) {
    return new Comparator<Runner>() {
        public int compare(Runner o1, Runner o2) {
            return sorter.compare(describeChild(o1), describeChild(o2));
        }
    };
}
 
开发者ID:naver,项目名称:pinpoint,代码行数:8,代码来源:PinpointPluginTestSuite.java

示例12: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
@Override
public void sort(Sorter sorter) {
    fSorter = sorter;
    for (FrameworkMethod each : getFilteredChildren()) {
        sortChild(each);
    }
    Collections.sort(getFilteredChildren(), comparator());
    assumptionSort(getFilteredChildren());
}
 
开发者ID:gnu-user,项目名称:orwell,代码行数:10,代码来源:Corollaries.java

示例13: getSorter

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
public Sorter getSorter()  {
    // TODO: implement the better sorter
    return Sorter.NULL;
}
 
开发者ID:MarkBramnik,项目名称:rtest,代码行数:5,代码来源:SortData.java

示例14: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
@Override
public void sort(final Sorter sorter) {
  super.sort(sorter);
  descriptionOutdated = true;
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:6,代码来源:DiscerningSuite.java

示例15: sort

import org.junit.runner.manipulation.Sorter; //导入依赖的package包/类
@Override
public void sort(Sorter newSorter) {
    super.sort(newSorter);

    this.sorter = newSorter;
}
 
开发者ID:richard-melvin,项目名称:junit-theory-suite,代码行数:7,代码来源:TheorySuite.java


注:本文中的org.junit.runner.manipulation.Sorter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。