1 // Copyright 2020 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 // 15 //////////////////////////////////////////////////////////////////////////////// 16 17 package com.google.crypto.tink.keyderivation; 18 19 import org.junit.Test; 20 import org.junit.runner.RunWith; 21 import org.junit.runners.JUnit4; 22 23 /** Tests for KeysetDeriverWrapper. */ 24 @RunWith(JUnit4.class) 25 public class KeysetDeriverWrapperTest { 26 /* 27 * There isn't much to test here. We never allowed registering the key manager separately, so 28 * KeysetDeriverWrapper.register really should just not throw in case one registers key derivation 29 * normally. 30 */ 31 @Test test_registerDoesNotThrow()32 public void test_registerDoesNotThrow() throws Exception { 33 KeyDerivationConfig.register(); 34 KeysetDeriverWrapper.register(); 35 } 36 } 37