001/* 002 * jDTAUS Core API 003 * Copyright (C) 2005 Christian Schulte 004 * <cs@schulte.it> 005 * 006 * This library is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 2.1 of the License, or any later version. 010 * 011 * This library is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public 017 * License along with this library; if not, write to the Free Software 018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 019 * 020 */ 021package org.jdtaus.core.text.test; 022 023import java.io.ObjectInputStream; 024import junit.framework.TestCase; 025import org.jdtaus.core.text.Messages; 026 027/** 028 * jUnit tests for {@code Messages} implementations. 029 * 030 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 031 * @version $JDTAUS: MessagesTest.java 8641 2012-09-27 06:45:17Z schulte $ 032 */ 033public class MessagesTest extends TestCase 034{ 035 //--MessagesTest------------------------------------------------------------ 036 037 public void testBackwardCompatibility_1_5() throws Exception 038 { 039 final ObjectInputStream in = new ObjectInputStream( this.getClass(). 040 getResourceAsStream( "Messages.ser" ) ); 041 042 final Messages serialized = (Messages) in.readObject(); 043 System.out.println( serialized ); 044 } 045 046 //------------------------------------------------------------MessagesTest-- 047}