001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.commons.chain.web; 018 019import org.apache.commons.chain.Context; 020import org.apache.commons.chain.ContextTestCase; 021import org.junit.jupiter.api.Test; 022 023/** 024 * Test case for the {@code ContextBase} class. 025 * 026 * @author Craig R. McClanahan 027 * @version $Revision$ $Date$ 028 */ 029public abstract class ContextBaseTestWeb<C extends Context> extends ContextTestCase<C> { 030 031 // ---------------------------------------------------------- Constructors 032 033 /** 034 * The Default-Constructor for this class. 035 */ 036 public ContextBaseTestWeb() { 037 } 038 039 // ------------------------------------------------ Individual Test Methods 040 041 /** 042 * Test serialization 043 * 044 * @throws Exception any error 045 */ 046 @Test 047 public void testSerialization() throws Exception { 048 // ContextBase is implicitly declared Serializable because it 049 // extends HashMap. However, it is not possible to make 050 // the concrete subclasses of WebContext Serializable, because 051 // the underlying container objects that they wrap will not be. 052 // Therefore, skip testing serializability of these implementations 053 return; 054 } 055}