1 /* 2 * Copyright 2011-2012 smartics, Kronseder & Reiner GmbH 3 * 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 package de.smartics.util.adapt; 17 18 import org.junit.experimental.categories.Category; 19 import org.junit.experimental.theories.DataPoint; 20 21 import de.smartics.testdoc.annotations.Uut; 22 import de.smartics.testdoc.categories.type.ObjectBasics; 23 import de.smartics.util.test.theories.SerializationTheory; 24 25 /** 26 * Tests that instances of {@link AdaptableException} are serializable. 27 */ 28 @Category(ObjectBasics.class) 29 @Uut(type = AdaptableException.class) 30 public class AdaptableExceptionSerializableTest extends SerializationTheory 31 { 32 // ********************************* Fields ********************************* 33 34 // --- constants ------------------------------------------------------------ 35 36 // --- members -------------------------------------------------------------- 37 38 // ****************************** Inner Classes ***************************** 39 40 // ********************************* Methods ******************************** 41 42 // --- prepare -------------------------------------------------------------- 43 44 // --- helper --------------------------------------------------------------- 45 46 // --- tests ---------------------------------------------------------------- 47 48 @DataPoint 49 public static final AdaptableException NO_ARG = new AdaptableException( 50 Class.class, Object.class); 51 52 @DataPoint 53 public static final AdaptableException WITH_ARG = new AdaptableException( 54 new NullPointerException(), Class.class, Object.class); 55 }