1/* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. 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 17package tests.api.java.nio.charset; 18 19import java.io.UnsupportedEncodingException; 20import java.nio.ByteBuffer; 21import java.nio.charset.Charset; 22 23/** 24 * test ISO-8859-1 decoder 25 */ 26public class ISOCharsetDecoderTest extends CharsetDecoderTest { 27 28 protected void setUp() throws Exception { 29 cs = Charset.forName("iso-8859-1"); 30 super.setUp(); 31 } 32 33 /* 34 * @see CharsetDecoderTest#tearDown() 35 */ 36 protected void tearDown() throws Exception { 37 super.tearDown(); 38 } 39 40 // FIXME: give up this tests 41 // public void testDefaultCharsPerByte(){ 42 // assertEquals(1, decoder.averageCharsPerByte()); 43 // assertEquals(decoder.maxCharsPerByte(), 2, 0.001); 44 // } 45 46 ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException { 47 // TODO how on map? 48 return null; 49 50 } 51 52 ByteBuffer getMalformedByteBuffer() throws UnsupportedEncodingException { 53 // TODO how malform 54 return null; 55 } 56 57 ByteBuffer getExceptionByteArray() throws UnsupportedEncodingException { 58 return null; 59 } 60 61} 62