01: /*
02: * TestBrokerFactoryPooling.java
03: *
04: * Created on October 9, 2006, 6:10 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: /*
11: * Licensed to the Apache Software Foundation (ASF) under one
12: * or more contributor license agreements. See the NOTICE file
13: * distributed with this work for additional information
14: * regarding copyright ownership. The ASF licenses this file
15: * to you under the Apache License, Version 2.0 (the
16: * "License"); you may not use this file except in compliance
17: * with the License. You may obtain a copy of the License at
18: *
19: * http://www.apache.org/licenses/LICENSE-2.0
20: *
21: * Unless required by applicable law or agreed to in writing,
22: * software distributed under the License is distributed on an
23: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
24: * KIND, either express or implied. See the License for the
25: * specific language governing permissions and limitations
26: * under the License.
27: */
28: package org.apache.openjpa.persistence.kernel;
29:
30: import org.apache.openjpa.kernel.Bootstrap;
31: import org.apache.openjpa.kernel.BrokerFactory;
32:
33: public class TestBrokerFactoryPooling extends BaseKernelTest {
34:
35: /**
36: * Creates a new instance of TestBrokerFactoryPooling
37: */
38: public TestBrokerFactoryPooling(String name) {
39: super (name);
40: }
41:
42: public void testPooling() {
43: BrokerFactory bf0 = Bootstrap.getBrokerFactory();
44: BrokerFactory bf1 = Bootstrap.getBrokerFactory();
45: assertSame(bf0, bf1);
46: }
47: }
|