1d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe/*
2d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * Copyright (C) 2015 The Android Open Source Project
3d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe *
4d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * Licensed under the Apache License, Version 2.0 (the "License");
5d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * you may not use this file except in compliance with the License.
6d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * You may obtain a copy of the License at
7d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe *
8d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe *      http://www.apache.org/licenses/LICENSE-2.0
9d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe *
10d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * Unless required by applicable law or agreed to in writing, software
11d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * distributed under the License is distributed on an "AS IS" BASIS,
12d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * See the License for the specific language governing permissions and
14d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe * limitations under the License.
15d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe */
16d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe
17d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampepackage libcore.java.lang;
18d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe
19d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampepublic class NoClassDefFoundErrorTest extends junit.framework.TestCase {
20d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe    // The Android runtime requires a constructor accepting a cause.
21d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe    public void test_NoClassDefFoundError_constructor_with_cause()  throws Exception {
22d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe        Class<NoClassDefFoundError> klass = NoClassDefFoundError.class;
23d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe        // This will succeed if the constructor is declared in NoClassDefFoundError.
24d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe        klass.getDeclaredConstructor(String.class, Throwable.class);
25d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe    }
26d8f431e70b8d54ec77004a52147a708ce816474aAndreas Gampe}
27