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 dalvik.annotation.TestTargetClass; 20 21import java.io.UnsupportedEncodingException; 22import java.nio.ByteBuffer; 23import java.nio.charset.Charset; 24 25/** 26 * test ISO-8859-1 decoder 27 */ 28@TestTargetClass(java.nio.charset.CharsetDecoder.class) 29public class ISOCharsetDecoderTest extends AbstractCharsetDecoderTestCase { 30 31 protected void setUp() throws Exception { 32 cs = Charset.forName("iso-8859-1"); 33 unibytes = new byte[] { 32, 98, 117, 102, 102, 101, 114 }; 34 super.setUp(); 35 } 36 37 /* 38 * @see CharsetDecoderTest#tearDown() 39 */ 40 protected void tearDown() throws Exception { 41 super.tearDown(); 42 } 43 44 // FIXME: give up this tests 45 // public void testDefaultCharsPerByte(){ 46 // assertEquals(1, decoder.averageCharsPerByte()); 47 // assertEquals(decoder.maxCharsPerByte(), 2, 0.001); 48 // } 49 50 ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException { 51 // TODO how on map? 52 return null; 53 54 } 55 56 ByteBuffer getMalformByteBuffer() throws UnsupportedEncodingException { 57 // TODO how malform 58 return null; 59 } 60 61 ByteBuffer getExceptionByteArray() throws UnsupportedEncodingException { 62 return null; 63 } 64 65} 66