Author: dazeydev
Date: Wed Oct 4 20:29:15 2017
New Revision: 1811148
URL: http://svn.apache.org/viewvc?rev=1811148&view=rev
Log:
OpenJPA-2701: Missing Localizer Properties, added testcase
Added:
openjpa/branches/2.2.x/openjpa-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestOpenJPAConfiguration.java
Added:
openjpa/branches/2.2.x/openjpa-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestOpenJPAConfiguration.java
URL:
http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestOpenJPAConfiguration.java?rev=1811148&view=auto
==============================================================================
---
openjpa/branches/2.2.x/openjpa-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestOpenJPAConfiguration.java
(added)
+++
openjpa/branches/2.2.x/openjpa-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestOpenJPAConfiguration.java
Wed Oct 4 20:29:15 2017
@@ -0,0 +1,47 @@
+/*
+ * 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.openjpa.jdbc.kernel;
+
+import java.beans.IntrospectionException;
+import java.beans.Introspector;
+
+import org.apache.openjpa.conf.OpenJPAConfigurationImpl;
+
+import junit.framework.TestCase;
+
+/**
+ * Test the OpenJPAConfiguration is complete.
+ *
+ * @author William Dazey
+ *
+ */
+public class TestOpenJPAConfiguration extends TestCase {
+
+ /**
+ * Simple test that will fail with an IntrospectionException if
+ * properties are missing from localizer.properties
+ */
+ public void testOpenJPAConfigurationProperties() {
+ try {
+
Introspector.getBeanInfo(org.apache.openjpa.conf.OpenJPAConfigurationImpl.class);
+ } catch (IntrospectionException e) {
+ throw new RuntimeException(e);
+ }
+ }
+}