Save This Page
Home » glassfish-v2ur2-b04-src » javax » mail » internet » [javadoc | source]
    1   /**
    2    *
    3    * Copyright 2003-2004 The Apache Software Foundation
    4    *
    5    *  Licensed under the Apache License, Version 2.0 (the "License");
    6    *  you may not use this file except in compliance with the License.
    7    *  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    *  Unless required by applicable law or agreed to in writing, software
   12    *  distributed under the License is distributed on an "AS IS" BASIS,
   13    *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    *  See the License for the specific language governing permissions and
   15    *  limitations under the License.
   16    */
   17   
   18   package javax.mail.internet;
   19   import junit.framework.TestCase;
   20   /**
   21    * @version $Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $
   22    */
   23   public class ContentTypeTest extends TestCase {
   24       public ContentTypeTest(String arg0) {
   25           super(arg0);
   26       }
   27       public void testContentType() throws ParseException {
   28           ContentType type;
   29           type = new ContentType("text/plain");
   30           assertEquals("text", type.getPrimaryType());
   31           assertEquals("plain", type.getSubType());
   32           assertEquals(null, type.getParameterList());
   33           type = new ContentType("image/audio;charset=us-ascii");
   34           ParameterList parameterList = type.getParameterList();
   35           assertEquals("image", type.getPrimaryType());
   36           assertEquals("audio", type.getSubType());
   37           assertEquals("us-ascii", parameterList.get("charset"));
   38       }
   39       public void testContentTypeStringStringParameterList() {
   40       }
   41       public void testContentTypeString() {
   42       }
   43       public void testGetPrimaryType() {
   44       }
   45       public void testGetSubType() {
   46       }
   47       public void testGetBaseType() {
   48       }
   49       public void testGetParameter() {
   50       }
   51       public void testGetParameterList() {
   52       }
   53       public void testSetPrimaryType() {
   54       }
   55       public void testSetSubType() {
   56       }
   57       public void testSetParameter() {
   58       }
   59       public void testSetParameterList() {
   60       }
   61       public void testToString() {
   62       }
   63       public void testMatchContentType() {
   64       }
   65       public void testMatchString() {
   66       }
   67   }

Save This Page
Home » glassfish-v2ur2-b04-src » javax » mail » internet » [javadoc | source]