This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
commit 4b54ea524f14a8f79a81d69e209c0c43dbdf1277 Author: Gary David Gregory (Code signing key) <ggreg...@apache.org> AuthorDate: Fri Nov 18 16:15:14 2022 -0500 Add ObjectTypeTest --- .../org/apache/bcel/generic/ObjectTypeTest.java | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/test/java/org/apache/bcel/generic/ObjectTypeTest.java b/src/test/java/org/apache/bcel/generic/ObjectTypeTest.java new file mode 100644 index 00000000..ac066e08 --- /dev/null +++ b/src/test/java/org/apache/bcel/generic/ObjectTypeTest.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.bcel.generic; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.math.BigDecimal; + +import org.junit.jupiter.api.Test; + +public class ObjectTypeTest { + + @Test + public void testGetClassName() { + final String className = BigDecimal.class.getName(); + final ObjectType objectType = ObjectType.getInstance(className); + assertEquals(className, objectType.getClassName()); + } + +}