1 /** 2 * @license 3 * Copyright 2016 Google Inc. All rights reserved. 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.google.security.wycheproof; 18 19 import com.google.security.wycheproof.WycheproofRunner.Provider; 20 import com.google.security.wycheproof.WycheproofRunner.ProviderType; 21 import org.junit.BeforeClass; 22 import org.junit.runner.RunWith; 23 import org.junit.runners.Suite.SuiteClasses; 24 import org.spongycastle.jce.provider.BouncyCastleProvider; 25 26 /** 27 * SpongyCastleTest excludes {@code @SlowTest} tests. 28 * SpongyCastleAllTests runs all tests. 29 */ 30 @RunWith(WycheproofRunner.class) 31 @SuiteClasses({ 32 AesEaxTest.class, 33 AesGcmTest.class, 34 BasicTest.class, 35 CipherInputStreamTest.class, 36 CipherOutputStreamTest.class, 37 DhTest.class, 38 DhiesTest.class, 39 DsaTest.class, 40 EcKeyTest.class, 41 EcdhTest.class, 42 EcdsaTest.class, 43 EciesTest.class, 44 RsaEncryptionTest.class, 45 RsaKeyTest.class, 46 RsaSignatureTest.class, 47 }) 48 @Provider(ProviderType.SPONGY_CASTLE) 49 public final class SpongyCastleAllTests { 50 @BeforeClass setUp()51 public static void setUp() throws Exception { 52 TestUtil.installOnlyThisProvider(new BouncyCastleProvider()); 53 } 54 } 55