001package org.apache.archiva.test.utils;
002
003/*
004 * Copyright 2012 The Apache Software Foundation.
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at
009 *
010 *      http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019import org.junit.runners.model.FrameworkMethod;
020import org.junit.runners.model.InitializationError;
021import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
022
023import java.util.List;
024
025/**
026 * @author Eric
027 */
028public class ArchivaSpringJUnit4ClassRunner
029    extends SpringJUnit4ClassRunner
030{
031
032    public ArchivaSpringJUnit4ClassRunner( Class<?> clazz )
033        throws InitializationError
034    {
035        super( clazz );
036    }
037
038    @Override
039    protected List<FrameworkMethod> computeTestMethods()
040    {
041        return ListGenerator.getShuffleList( super.computeTestMethods() );
042    }
043
044
045}