Modified:
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/overview-tree.html
==============================================================================
---
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/overview-tree.html
(original)
+++
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/overview-tree.html
Tue May 21 03:41:41 2019
@@ -1,154 +1,140 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
-<!--NewPage-->
-<HTML>
-<HEAD>
-<!-- Generated by javadoc (build 1.5.0_19) on Fri Jul 10 17:13:46 CEST 2009 -->
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<TITLE>
-Class Hierarchy (Fulcrum Pool 1.0.5-SNAPSHOT Test API)
-</TITLE>
-
-
-<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
-
-<SCRIPT type="text/javascript">
-function windowTitle()
-{
- parent.document.title="Class Hierarchy (Fulcrum Pool 1.0.5-SNAPSHOT Test
API)";
-}
-</SCRIPT>
-<NOSCRIPT>
-</NOSCRIPT>
-
-</HEAD>
-
-<BODY BGCOLOR="white" onload="windowTitle();">
-
-
+<!-- NewPage -->
+<html lang="en">
+<head>
+<!-- Generated by javadoc -->
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Class Hierarchy (Fulcrum Pool 1.0.5 Test API)</title>
+<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
+<script type="text/javascript" src="script.js"></script>
+</head>
+<body>
+<script type="text/javascript"><!--
+ try {
+ if (location.href.indexOf('is-external=true') == -1) {
+ parent.document.title="Class Hierarchy (Fulcrum Pool 1.0.5 Test
API)";
+ }
+ }
+ catch(err) {
+ }
+//-->
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
-<A NAME="navbar_top"><!-- --></A>
-<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
-<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
-<TR>
-<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
-<A NAME="navbar_top_firstrow"><!-- --></A>
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A
HREF="org/apache/fulcrum/pool/package-summary.html"><FONT
CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT
CLASS="NavBarFont1">Class</FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT
CLASS="NavBarFont1">Use</FONT> </TD>
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT
CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A
HREF="deprecated-list.html"><FONT
CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT
CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT
CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
-</TABLE>
-</TD>
-<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
-</EM>
-</TD>
-</TR>
-
-<TR>
-<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- PREV
- NEXT</FONT></TD>
-<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="index.html?overview-tree.html" target="_top"><B>FRAMES</B></A>
- <A HREF="overview-tree.html" target="_top"><B>NO FRAMES</B></A>
- <SCRIPT type="text/javascript">
- <!--
+<div class="topNav"><a name="navbar.top">
+<!-- -->
+</a>
+<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation
links">Skip navigation links</a></div>
+<a name="navbar.top.firstrow">
+<!-- -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="org/apache/fulcrum/pool/package-summary.html">Package</a></li>
+<li>Class</li>
+<li>Use</li>
+<li class="navBarCell1Rev">Tree</li>
+<li><a href="deprecated-list.html">Deprecated</a></li>
+<li><a href="index-all.html">Index</a></li>
+<li><a href="help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li>Prev</li>
+<li>Next</li>
+</ul>
+<ul class="navList">
+<li><a href="index.html?overview-tree.html" target="_top">Frames</a></li>
+<li><a href="overview-tree.html" target="_top">No Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_top">
+<li><a href="allclasses-noframe.html">All Classes</a></li>
+</ul>
+<div>
+<script type="text/javascript"><!--
+ allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
- document.writeln('<A HREF="allclasses-noframe.html"><B>All
Classes</B></A>');
+ allClassesLink.style.display = "block";
+ }
+ else {
+ allClassesLink.style.display = "none";
}
//-->
-</SCRIPT>
-<NOSCRIPT>
- <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
-</NOSCRIPT>
-
-
-</FONT></TD>
-</TR>
-</TABLE>
-<A NAME="skip-navbar_top"></A>
+</script>
+</div>
+<a name="skip.navbar.top">
+<!-- -->
+</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
-
-<HR>
-<CENTER>
-<H2>
-Hierarchy For All Packages</H2>
-</CENTER>
-<DL>
-<DT><B>Package Hierarchies:</B><DD><A
HREF="org/apache/fulcrum/pool/package-tree.html">org.apache.fulcrum.pool</A></DL>
-<HR>
-<H2>
-Class Hierarchy
-</H2>
-<UL>
-<LI TYPE="circle">java.lang.<A
HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class
or interface in java.lang"><B>Object</B></A><UL>
-<LI TYPE="circle">junit.framework.Assert<UL>
-<LI TYPE="circle">junit.framework.TestCase (implements junit.framework.Test)
-<UL>
-<LI TYPE="circle">org.apache.fulcrum.testcontainer.BaseUnitTest<UL>
-<LI TYPE="circle">org.apache.fulcrum.pool.<A
HREF="org/apache/fulcrum/pool/PoolServiceTest.html" title="class in
org.apache.fulcrum.pool"><B>PoolServiceTest</B></A></UL>
-</UL>
-</UL>
-</UL>
-</UL>
-<HR>
-
-
+<div class="header">
+<h1 class="title">Hierarchy For All Packages</h1>
+<span class="packageHierarchyLabel">Package Hierarchies:</span>
+<ul class="horizontal">
+<li><a
href="org/apache/fulcrum/pool/package-tree.html">org.apache.fulcrum.pool</a></li>
+</ul>
+</div>
+<div class="contentContainer">
+<h2 title="Class Hierarchy">Class Hierarchy</h2>
+<ul>
+<li type="circle">java.lang.<a
href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang"><span
class="typeNameLink">Object</span></a>
+<ul>
+<li type="circle">org.apache.fulcrum.testcontainer.BaseUnit5Test
+<ul>
+<li type="circle">org.apache.fulcrum.pool.<a
href="org/apache/fulcrum/pool/PoolServiceTest.html" title="class in
org.apache.fulcrum.pool"><span
class="typeNameLink">PoolServiceTest</span></a></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<A NAME="navbar_bottom"><!-- --></A>
-<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
-<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
-<TR>
-<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
-<A NAME="navbar_bottom_firstrow"><!-- --></A>
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A
HREF="org/apache/fulcrum/pool/package-summary.html"><FONT
CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT
CLASS="NavBarFont1">Class</FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT
CLASS="NavBarFont1">Use</FONT> </TD>
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT
CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A
HREF="deprecated-list.html"><FONT
CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT
CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT
CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
-</TABLE>
-</TD>
-<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
-</EM>
-</TD>
-</TR>
-
-<TR>
-<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- PREV
- NEXT</FONT></TD>
-<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="index.html?overview-tree.html" target="_top"><B>FRAMES</B></A>
- <A HREF="overview-tree.html" target="_top"><B>NO FRAMES</B></A>
- <SCRIPT type="text/javascript">
- <!--
+<div class="bottomNav"><a name="navbar.bottom">
+<!-- -->
+</a>
+<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation
links">Skip navigation links</a></div>
+<a name="navbar.bottom.firstrow">
+<!-- -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="org/apache/fulcrum/pool/package-summary.html">Package</a></li>
+<li>Class</li>
+<li>Use</li>
+<li class="navBarCell1Rev">Tree</li>
+<li><a href="deprecated-list.html">Deprecated</a></li>
+<li><a href="index-all.html">Index</a></li>
+<li><a href="help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li>Prev</li>
+<li>Next</li>
+</ul>
+<ul class="navList">
+<li><a href="index.html?overview-tree.html" target="_top">Frames</a></li>
+<li><a href="overview-tree.html" target="_top">No Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_bottom">
+<li><a href="allclasses-noframe.html">All Classes</a></li>
+</ul>
+<div>
+<script type="text/javascript"><!--
+ allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
- document.writeln('<A HREF="allclasses-noframe.html"><B>All
Classes</B></A>');
+ allClassesLink.style.display = "block";
+ }
+ else {
+ allClassesLink.style.display = "none";
}
//-->
-</SCRIPT>
-<NOSCRIPT>
- <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
-</NOSCRIPT>
-
-
-</FONT></TD>
-</TR>
-</TABLE>
-<A NAME="skip-navbar_bottom"></A>
+</script>
+</div>
+<a name="skip.navbar.bottom">
+<!-- -->
+</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
-
-<HR>
-Copyright © 2005-2009 <a href="http://www.apache.org/">The Apache Software
Foundation</a>. All Rights Reserved.
-</BODY>
-</HTML>
+<p class="legalCopy"><small>Copyright © 2005–2019 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</small></p>
+</body>
+</html>
\ No newline at end of file
Added:
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/script.js
==============================================================================
---
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/script.js
(added)
+++
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/script.js
Tue May 21 03:41:41 2019
@@ -0,0 +1,30 @@
+function show(type)
+{
+ count = 0;
+ for (var key in methods) {
+ var row = document.getElementById(key);
+ if ((methods[key] & type) != 0) {
+ row.style.display = '';
+ row.className = (count++ % 2) ? rowColor : altColor;
+ }
+ else
+ row.style.display = 'none';
+ }
+ updateTabs(type);
+}
+
+function updateTabs(type)
+{
+ for (var value in tabs) {
+ var sNode = document.getElementById(tabs[value][0]);
+ var spanNode = sNode.firstChild;
+ if (value == type) {
+ sNode.className = activeTableTab;
+ spanNode.innerHTML = tabs[value][1];
+ }
+ else {
+ sNode.className = tableTab;
+ spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">"
+ tabs[value][1] + "</a>";
+ }
+ }
+}
\ No newline at end of file
Modified:
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/src-html/org/apache/fulcrum/pool/PoolServiceTest.html
==============================================================================
---
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/src-html/org/apache/fulcrum/pool/PoolServiceTest.html
(original)
+++
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/src-html/org/apache/fulcrum/pool/PoolServiceTest.html
Tue May 21 03:41:41 2019
@@ -1,118 +1,153 @@
-<HTML>
-<BODY BGCOLOR="white">
-<PRE>
-<FONT color="green">001</FONT> package org.apache.fulcrum.pool;<a
name="line.1"></a>
-<FONT color="green">002</FONT> <a name="line.2"></a>
-<FONT color="green">003</FONT> /*<a name="line.3"></a>
-<FONT color="green">004</FONT> * Licensed to the Apache Software
Foundation (ASF) under one<a name="line.4"></a>
-<FONT color="green">005</FONT> * or more contributor license agreements.
See the NOTICE file<a name="line.5"></a>
-<FONT color="green">006</FONT> * distributed with this work for additional
information<a name="line.6"></a>
-<FONT color="green">007</FONT> * regarding copyright ownership. The ASF
licenses this file<a name="line.7"></a>
-<FONT color="green">008</FONT> * to you under the Apache License, Version
2.0 (the<a name="line.8"></a>
-<FONT color="green">009</FONT> * "License"); you may not use this file
except in compliance<a name="line.9"></a>
-<FONT color="green">010</FONT> * with the License. You may obtain a copy
of the License at<a name="line.10"></a>
-<FONT color="green">011</FONT> *<a name="line.11"></a>
-<FONT color="green">012</FONT> *
http://www.apache.org/licenses/LICENSE-2.0<a name="line.12"></a>
-<FONT color="green">013</FONT> *<a name="line.13"></a>
-<FONT color="green">014</FONT> * Unless required by applicable law or
agreed to in writing,<a name="line.14"></a>
-<FONT color="green">015</FONT> * software distributed under the License is
distributed on an<a name="line.15"></a>
-<FONT color="green">016</FONT> * "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY<a name="line.16"></a>
-<FONT color="green">017</FONT> * KIND, either express or implied. See the
License for the<a name="line.17"></a>
-<FONT color="green">018</FONT> * specific language governing permissions
and limitations<a name="line.18"></a>
-<FONT color="green">019</FONT> * under the License.<a name="line.19"></a>
-<FONT color="green">020</FONT> */<a name="line.20"></a>
-<FONT color="green">021</FONT> <a name="line.21"></a>
-<FONT color="green">022</FONT> import
org.apache.fulcrum.testcontainer.BaseUnitTest;<a name="line.22"></a>
-<FONT color="green">023</FONT> <a name="line.23"></a>
-<FONT color="green">024</FONT> /**<a name="line.24"></a>
-<FONT color="green">025</FONT> * @author Eric Pugh<a name="line.25"></a>
-<FONT color="green">026</FONT> * @author <a
href="mailto:[email protected]">Stephen McConnell</a><a
name="line.26"></a>
-<FONT color="green">027</FONT> *<a name="line.27"></a>
-<FONT color="green">028</FONT> * To change the template for this generated
type comment go to<a name="line.28"></a>
-<FONT color="green">029</FONT> * Window>Preferences>Java>Code
Generation>Code and Comments<a name="line.29"></a>
-<FONT color="green">030</FONT> */<a name="line.30"></a>
-<FONT color="green">031</FONT> public class PoolServiceTest extends
BaseUnitTest<a name="line.31"></a>
-<FONT color="green">032</FONT> {<a name="line.32"></a>
-<FONT color="green">033</FONT> private PoolService poolService =
null;<a name="line.33"></a>
-<FONT color="green">034</FONT> /**<a name="line.34"></a>
-<FONT color="green">035</FONT> * Defines the testcase name for
JUnit.<a name="line.35"></a>
-<FONT color="green">036</FONT> *<a name="line.36"></a>
-<FONT color="green">037</FONT> * @param name the testcase's name.<a
name="line.37"></a>
-<FONT color="green">038</FONT> */<a name="line.38"></a>
-<FONT color="green">039</FONT> public PoolServiceTest(String name)<a
name="line.39"></a>
-<FONT color="green">040</FONT> {<a name="line.40"></a>
-<FONT color="green">041</FONT> super(name);<a name="line.41"></a>
-<FONT color="green">042</FONT> }<a name="line.42"></a>
-<FONT color="green">043</FONT> <a name="line.43"></a>
-<FONT color="green">044</FONT> public void setUp() throws Exception<a
name="line.44"></a>
-<FONT color="green">045</FONT> {<a name="line.45"></a>
-<FONT color="green">046</FONT> super.setUp();<a name="line.46"></a>
-<FONT color="green">047</FONT> <a name="line.47"></a>
-<FONT color="green">048</FONT> poolService = (PoolService)
this.resolve( PoolService.class.getName() );<a name="line.48"></a>
-<FONT color="green">049</FONT> }<a name="line.49"></a>
-<FONT color="green">050</FONT> <a name="line.50"></a>
-<FONT color="green">051</FONT> /*<a name="line.51"></a>
-<FONT color="green">052</FONT> * Class to test for Object
getInstance(Class)<a name="line.52"></a>
-<FONT color="green">053</FONT> */<a name="line.53"></a>
-<FONT color="green">054</FONT> public void testGetInstanceClass()
throws PoolException<a name="line.54"></a>
-<FONT color="green">055</FONT> {<a name="line.55"></a>
-<FONT color="green">056</FONT> Object object =
poolService.getInstance(StringBuffer.class);<a name="line.56"></a>
-<FONT color="green">057</FONT> assertTrue(object instanceof
StringBuffer);<a name="line.57"></a>
-<FONT color="green">058</FONT> <a name="line.58"></a>
-<FONT color="green">059</FONT> }<a name="line.59"></a>
-<FONT color="green">060</FONT> <a name="line.60"></a>
-<FONT color="green">061</FONT> public void testPutInstance()<a
name="line.61"></a>
-<FONT color="green">062</FONT> {<a name="line.62"></a>
-<FONT color="green">063</FONT> String s = "I am a string";<a
name="line.63"></a>
-<FONT color="green">064</FONT> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.64"></a>
-<FONT color="green">065</FONT> poolService.putInstance(s);<a
name="line.65"></a>
-<FONT color="green">066</FONT> assertEquals(1,
poolService.getSize("java.lang.String"));<a name="line.66"></a>
-<FONT color="green">067</FONT> <a name="line.67"></a>
-<FONT color="green">068</FONT> }<a name="line.68"></a>
-<FONT color="green">069</FONT> public void testGetSetCapacity()<a
name="line.69"></a>
-<FONT color="green">070</FONT> {<a name="line.70"></a>
-<FONT color="green">071</FONT> assertEquals(128,
poolService.getCapacity("java.lang.String"));<a name="line.71"></a>
-<FONT color="green">072</FONT>
poolService.setCapacity("java.lang.String", 278);<a name="line.72"></a>
-<FONT color="green">073</FONT> assertEquals(278,
poolService.getCapacity("java.lang.String"));<a name="line.73"></a>
-<FONT color="green">074</FONT> <a name="line.74"></a>
-<FONT color="green">075</FONT> }<a name="line.75"></a>
-<FONT color="green">076</FONT> public void testGetSize()<a
name="line.76"></a>
-<FONT color="green">077</FONT> {<a name="line.77"></a>
-<FONT color="green">078</FONT> String s = "I am a string";<a
name="line.78"></a>
-<FONT color="green">079</FONT> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.79"></a>
-<FONT color="green">080</FONT> poolService.putInstance(s);<a
name="line.80"></a>
-<FONT color="green">081</FONT> assertEquals(1,
poolService.getSize("java.lang.String"));<a name="line.81"></a>
-<FONT color="green">082</FONT> <a name="line.82"></a>
-<FONT color="green">083</FONT> }<a name="line.83"></a>
-<FONT color="green">084</FONT> /*<a name="line.84"></a>
-<FONT color="green">085</FONT> * Class to test for void
clearPool(String)<a name="line.85"></a>
-<FONT color="green">086</FONT> */<a name="line.86"></a>
-<FONT color="green">087</FONT> public void testClearPoolString()<a
name="line.87"></a>
-<FONT color="green">088</FONT> {<a name="line.88"></a>
-<FONT color="green">089</FONT> String s = "I am a string";<a
name="line.89"></a>
-<FONT color="green">090</FONT> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.90"></a>
-<FONT color="green">091</FONT> poolService.putInstance(s);<a
name="line.91"></a>
-<FONT color="green">092</FONT> assertEquals(1,
poolService.getSize("java.lang.String"));<a name="line.92"></a>
-<FONT color="green">093</FONT>
poolService.clearPool("java.lang.String");<a name="line.93"></a>
-<FONT color="green">094</FONT> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.94"></a>
-<FONT color="green">095</FONT> <a name="line.95"></a>
-<FONT color="green">096</FONT> }<a name="line.96"></a>
-<FONT color="green">097</FONT> /*<a name="line.97"></a>
-<FONT color="green">098</FONT> * Class to test for void clearPool()<a
name="line.98"></a>
-<FONT color="green">099</FONT> */<a name="line.99"></a>
-<FONT color="green">100</FONT> public void testClearPool()<a
name="line.100"></a>
-<FONT color="green">101</FONT> {<a name="line.101"></a>
-<FONT color="green">102</FONT> String s = "I am a string";<a
name="line.102"></a>
-<FONT color="green">103</FONT> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.103"></a>
-<FONT color="green">104</FONT> poolService.putInstance(s);<a
name="line.104"></a>
-<FONT color="green">105</FONT> poolService.putInstance(new
Double(32));<a name="line.105"></a>
-<FONT color="green">106</FONT> assertEquals(1,
poolService.getSize("java.lang.String"));<a name="line.106"></a>
-<FONT color="green">107</FONT> poolService.clearPool();<a
name="line.107"></a>
-<FONT color="green">108</FONT> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.108"></a>
-<FONT color="green">109</FONT> assertEquals(0,
poolService.getSize("java.lang.Double"));<a name="line.109"></a>
-<FONT color="green">110</FONT> <a name="line.110"></a>
-<FONT color="green">111</FONT> }<a name="line.111"></a>
-<FONT color="green">112</FONT> }<a name="line.112"></a>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css"
title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>package org.apache.fulcrum.pool;<a
name="line.1"></a>
+<span class="sourceLineNo">002</span><a name="line.2"></a>
+<span class="sourceLineNo">003</span><a name="line.3"></a>
+<span class="sourceLineNo">004</span>import static
org.junit.jupiter.api.Assertions.assertEquals;<a name="line.4"></a>
+<span class="sourceLineNo">005</span><a name="line.5"></a>
+<span class="sourceLineNo">006</span>/*<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * Licensed to the Apache Software
Foundation (ASF) under one<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * or more contributor license
agreements. See the NOTICE file<a name="line.8"></a>
+<span class="sourceLineNo">009</span> * distributed with this work for
additional information<a name="line.9"></a>
+<span class="sourceLineNo">010</span> * regarding copyright ownership. The
ASF licenses this file<a name="line.10"></a>
+<span class="sourceLineNo">011</span> * to you under the Apache License,
Version 2.0 (the<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * "License"); you may not use this file
except in compliance<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * with the License. You may obtain a
copy of the License at<a name="line.13"></a>
+<span class="sourceLineNo">014</span> *<a name="line.14"></a>
+<span class="sourceLineNo">015</span> *
http://www.apache.org/licenses/LICENSE-2.0<a name="line.15"></a>
+<span class="sourceLineNo">016</span> *<a name="line.16"></a>
+<span class="sourceLineNo">017</span> * Unless required by applicable law or
agreed to in writing,<a name="line.17"></a>
+<span class="sourceLineNo">018</span> * software distributed under the License
is distributed on an<a name="line.18"></a>
+<span class="sourceLineNo">019</span> * "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY<a name="line.19"></a>
+<span class="sourceLineNo">020</span> * KIND, either express or implied. See
the License for the<a name="line.20"></a>
+<span class="sourceLineNo">021</span> * specific language governing
permissions and limitations<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * under the License.<a
name="line.22"></a>
+<span class="sourceLineNo">023</span> */<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>import static
org.junit.jupiter.api.Assertions.assertTrue;<a name="line.25"></a>
+<span class="sourceLineNo">026</span><a name="line.26"></a>
+<span class="sourceLineNo">027</span>import
org.apache.fulcrum.testcontainer.BaseUnit5Test;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import
org.junit.jupiter.api.BeforeEach;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.junit.jupiter.api.Test;<a
name="line.29"></a>
+<span class="sourceLineNo">030</span><a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>/**<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * Basic testing of the PoolService
Component<a name="line.33"></a>
+<span class="sourceLineNo">034</span> *<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * @author <a
href="mailto:[email protected]">Jeffery Painter</a><a
name="line.35"></a>
+<span class="sourceLineNo">036</span> * @author Eric Pugh<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * @author <a
href="mailto:[email protected]">Stephen McConnell</a><a
name="line.37"></a>
+<span class="sourceLineNo">038</span> *<a name="line.38"></a>
+<span class="sourceLineNo">039</span> */<a name="line.39"></a>
+<span class="sourceLineNo">040</span>public class PoolServiceTest extends
BaseUnit5Test <a name="line.40"></a>
+<span class="sourceLineNo">041</span>{<a name="line.41"></a>
+<span class="sourceLineNo">042</span> /** Default pool service **/<a
name="line.42"></a>
+<span class="sourceLineNo">043</span> private PoolService poolService =
null;<a name="line.43"></a>
+<span class="sourceLineNo">044</span><a name="line.44"></a>
+<span class="sourceLineNo">045</span> /**<a name="line.45"></a>
+<span class="sourceLineNo">046</span> * Perform pool service setup<a
name="line.46"></a>
+<span class="sourceLineNo">047</span> * <a name="line.47"></a>
+<span class="sourceLineNo">048</span> * @throws Exception generic
exception<a name="line.48"></a>
+<span class="sourceLineNo">049</span> */<a name="line.49"></a>
+<span class="sourceLineNo">050</span> @BeforeEach<a name="line.50"></a>
+<span class="sourceLineNo">051</span> public void setUp() throws
Exception <a name="line.51"></a>
+<span class="sourceLineNo">052</span> {<a name="line.52"></a>
+<span class="sourceLineNo">053</span>
setConfigurationFileName("src/test/TestComponentConfig.xml");<a
name="line.53"></a>
+<span class="sourceLineNo">054</span>
setRoleFileName("src/test/TestRoleConfig.xml");<a name="line.54"></a>
+<span class="sourceLineNo">055</span> poolService = (PoolService)
this.lookup(PoolService.class.getName());<a name="line.55"></a>
+<span class="sourceLineNo">056</span> }<a name="line.56"></a>
+<span class="sourceLineNo">057</span><a name="line.57"></a>
+<span class="sourceLineNo">058</span> /**<a name="line.58"></a>
+<span class="sourceLineNo">059</span> * Class to test for Object
getInstance(Class)<a name="line.59"></a>
+<span class="sourceLineNo">060</span> * <a name="line.60"></a>
+<span class="sourceLineNo">061</span> * @throws PoolException generic
exception<a name="line.61"></a>
+<span class="sourceLineNo">062</span> */<a name="line.62"></a>
+<span class="sourceLineNo">063</span> @Test<a name="line.63"></a>
+<span class="sourceLineNo">064</span> public void
testGetInstanceClass() throws PoolException <a name="line.64"></a>
+<span class="sourceLineNo">065</span> {<a name="line.65"></a>
+<span class="sourceLineNo">066</span> Object object =
poolService.getInstance(StringBuilder.class);<a name="line.66"></a>
+<span class="sourceLineNo">067</span> assertTrue(object
instanceof StringBuilder);<a name="line.67"></a>
+<span class="sourceLineNo">068</span><a name="line.68"></a>
+<span class="sourceLineNo">069</span> }<a name="line.69"></a>
+<span class="sourceLineNo">070</span><a name="line.70"></a>
+<span class="sourceLineNo">071</span> /**<a name="line.71"></a>
+<span class="sourceLineNo">072</span> * Test adding an instance to the
pool<a name="line.72"></a>
+<span class="sourceLineNo">073</span> */<a name="line.73"></a>
+<span class="sourceLineNo">074</span> @Test<a name="line.74"></a>
+<span class="sourceLineNo">075</span> public void testPutInstance() <a
name="line.75"></a>
+<span class="sourceLineNo">076</span> {<a name="line.76"></a>
+<span class="sourceLineNo">077</span> String s = "I am a
string";<a name="line.77"></a>
+<span class="sourceLineNo">078</span> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.78"></a>
+<span class="sourceLineNo">079</span>
poolService.putInstance(s);<a name="line.79"></a>
+<span class="sourceLineNo">080</span> assertEquals(1,
poolService.getSize("java.lang.String"));<a name="line.80"></a>
+<span class="sourceLineNo">081</span><a name="line.81"></a>
+<span class="sourceLineNo">082</span> }<a name="line.82"></a>
+<span class="sourceLineNo">083</span><a name="line.83"></a>
+<span class="sourceLineNo">084</span> /**<a name="line.84"></a>
+<span class="sourceLineNo">085</span> * Test altering pool capacity<a
name="line.85"></a>
+<span class="sourceLineNo">086</span> */<a name="line.86"></a>
+<span class="sourceLineNo">087</span> @Test<a name="line.87"></a>
+<span class="sourceLineNo">088</span> public void testGetSetCapacity()
<a name="line.88"></a>
+<span class="sourceLineNo">089</span> {<a name="line.89"></a>
+<span class="sourceLineNo">090</span> assertEquals(128,
poolService.getCapacity("java.lang.String"));<a name="line.90"></a>
+<span class="sourceLineNo">091</span>
poolService.setCapacity("java.lang.String", 278);<a name="line.91"></a>
+<span class="sourceLineNo">092</span> assertEquals(278,
poolService.getCapacity("java.lang.String"));<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span> }<a name="line.94"></a>
+<span class="sourceLineNo">095</span><a name="line.95"></a>
+<span class="sourceLineNo">096</span> /**<a name="line.96"></a>
+<span class="sourceLineNo">097</span> * Test to determine current size
of the pool<a name="line.97"></a>
+<span class="sourceLineNo">098</span> */<a name="line.98"></a>
+<span class="sourceLineNo">099</span> @Test<a name="line.99"></a>
+<span class="sourceLineNo">100</span> public void testGetSize() <a
name="line.100"></a>
+<span class="sourceLineNo">101</span> {<a name="line.101"></a>
+<span class="sourceLineNo">102</span> String s = "I am a
string";<a name="line.102"></a>
+<span class="sourceLineNo">103</span> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.103"></a>
+<span class="sourceLineNo">104</span>
poolService.putInstance(s);<a name="line.104"></a>
+<span class="sourceLineNo">105</span> assertEquals(1,
poolService.getSize("java.lang.String"));<a name="line.105"></a>
+<span class="sourceLineNo">106</span><a name="line.106"></a>
+<span class="sourceLineNo">107</span> }<a name="line.107"></a>
+<span class="sourceLineNo">108</span><a name="line.108"></a>
+<span class="sourceLineNo">109</span> /**<a name="line.109"></a>
+<span class="sourceLineNo">110</span> * Class to test for void
clearPool(String)<a name="line.110"></a>
+<span class="sourceLineNo">111</span> */<a name="line.111"></a>
+<span class="sourceLineNo">112</span> @Test<a name="line.112"></a>
+<span class="sourceLineNo">113</span> public void testClearPoolString()
<a name="line.113"></a>
+<span class="sourceLineNo">114</span> {<a name="line.114"></a>
+<span class="sourceLineNo">115</span> String s = "I am a
string";<a name="line.115"></a>
+<span class="sourceLineNo">116</span> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.116"></a>
+<span class="sourceLineNo">117</span> <a name="line.117"></a>
+<span class="sourceLineNo">118</span>
poolService.putInstance(s);<a name="line.118"></a>
+<span class="sourceLineNo">119</span> assertEquals(1,
poolService.getSize("java.lang.String"));<a name="line.119"></a>
+<span class="sourceLineNo">120</span> <a name="line.120"></a>
+<span class="sourceLineNo">121</span>
poolService.clearPool("java.lang.String");<a name="line.121"></a>
+<span class="sourceLineNo">122</span> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.122"></a>
+<span class="sourceLineNo">123</span> }<a name="line.123"></a>
+<span class="sourceLineNo">124</span><a name="line.124"></a>
+<span class="sourceLineNo">125</span> /**<a name="line.125"></a>
+<span class="sourceLineNo">126</span> * Class to test for void
clearPool()<a name="line.126"></a>
+<span class="sourceLineNo">127</span> */<a name="line.127"></a>
+<span class="sourceLineNo">128</span> @Test<a name="line.128"></a>
+<span class="sourceLineNo">129</span> public void testClearPool() <a
name="line.129"></a>
+<span class="sourceLineNo">130</span> {<a name="line.130"></a>
+<span class="sourceLineNo">131</span> String s = "I am a
string";<a name="line.131"></a>
+<span class="sourceLineNo">132</span> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.132"></a>
+<span class="sourceLineNo">133</span> <a name="line.133"></a>
+<span class="sourceLineNo">134</span>
poolService.putInstance(s);<a name="line.134"></a>
+<span class="sourceLineNo">135</span>
poolService.putInstance(new Double(32));<a name="line.135"></a>
+<span class="sourceLineNo">136</span> assertEquals(1,
poolService.getSize("java.lang.String"));<a name="line.136"></a>
+<span class="sourceLineNo">137</span> <a name="line.137"></a>
+<span class="sourceLineNo">138</span>
poolService.clearPool();<a name="line.138"></a>
+<span class="sourceLineNo">139</span> assertEquals(0,
poolService.getSize("java.lang.String"));<a name="line.139"></a>
+<span class="sourceLineNo">140</span> assertEquals(0,
poolService.getSize("java.lang.Double"));<a name="line.140"></a>
+<span class="sourceLineNo">141</span> }<a name="line.141"></a>
+<span class="sourceLineNo">142</span>}<a name="line.142"></a>
@@ -173,6 +208,7 @@
-</PRE>
-</BODY>
-</HTML>
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file
Modified:
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/stylesheet.css
==============================================================================
---
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/stylesheet.css
(original)
+++
websites/production/turbine/content/fulcrum/fulcrum-pool/testapidocs/stylesheet.css
Tue May 21 03:41:41 2019
@@ -1,29 +1,574 @@
/* Javadoc style sheet */
+/*
+Overall document style
+*/
-/* Define colors, fonts and other style attributes here to override the
defaults */
+@import url('resources/fonts/dejavu.css');
-/* Page background color */
-body { background-color: #FFFFFF }
+body {
+ background-color:#ffffff;
+ color:#353833;
+ font-family:'DejaVu Sans', Arial, Helvetica, sans-serif;
+ font-size:14px;
+ margin:0;
+}
+a:link, a:visited {
+ text-decoration:none;
+ color:#4A6782;
+}
+a:hover, a:focus {
+ text-decoration:none;
+ color:#bb7a2a;
+}
+a:active {
+ text-decoration:none;
+ color:#4A6782;
+}
+a[name] {
+ color:#353833;
+}
+a[name]:hover {
+ text-decoration:none;
+ color:#353833;
+}
+pre {
+ font-family:'DejaVu Sans Mono', monospace;
+ font-size:14px;
+}
+h1 {
+ font-size:20px;
+}
+h2 {
+ font-size:18px;
+}
+h3 {
+ font-size:16px;
+ font-style:italic;
+}
+h4 {
+ font-size:13px;
+}
+h5 {
+ font-size:12px;
+}
+h6 {
+ font-size:11px;
+}
+ul {
+ list-style-type:disc;
+}
+code, tt {
+ font-family:'DejaVu Sans Mono', monospace;
+ font-size:14px;
+ padding-top:4px;
+ margin-top:8px;
+ line-height:1.4em;
+}
+dt code {
+ font-family:'DejaVu Sans Mono', monospace;
+ font-size:14px;
+ padding-top:4px;
+}
+table tr td dt code {
+ font-family:'DejaVu Sans Mono', monospace;
+ font-size:14px;
+ vertical-align:top;
+ padding-top:4px;
+}
+sup {
+ font-size:8px;
+}
+/*
+Document title and Copyright styles
+*/
+.clear {
+ clear:both;
+ height:0px;
+ overflow:hidden;
+}
+.aboutLanguage {
+ float:right;
+ padding:0px 21px;
+ font-size:11px;
+ z-index:200;
+ margin-top:-9px;
+}
+.legalCopy {
+ margin-left:.5em;
+}
+.bar a, .bar a:link, .bar a:visited, .bar a:active {
+ color:#FFFFFF;
+ text-decoration:none;
+}
+.bar a:hover, .bar a:focus {
+ color:#bb7a2a;
+}
+.tab {
+ background-color:#0066FF;
+ color:#ffffff;
+ padding:8px;
+ width:5em;
+ font-weight:bold;
+}
+/*
+Navigation bar styles
+*/
+.bar {
+ background-color:#4D7A97;
+ color:#FFFFFF;
+ padding:.8em .5em .4em .8em;
+ height:auto;/*height:1.8em;*/
+ font-size:11px;
+ margin:0;
+}
+.topNav {
+ background-color:#4D7A97;
+ color:#FFFFFF;
+ float:left;
+ padding:0;
+ width:100%;
+ clear:right;
+ height:2.8em;
+ padding-top:10px;
+ overflow:hidden;
+ font-size:12px;
+}
+.bottomNav {
+ margin-top:10px;
+ background-color:#4D7A97;
+ color:#FFFFFF;
+ float:left;
+ padding:0;
+ width:100%;
+ clear:right;
+ height:2.8em;
+ padding-top:10px;
+ overflow:hidden;
+ font-size:12px;
+}
+.subNav {
+ background-color:#dee3e9;
+ float:left;
+ width:100%;
+ overflow:hidden;
+ font-size:12px;
+}
+.subNav div {
+ clear:left;
+ float:left;
+ padding:0 0 5px 6px;
+ text-transform:uppercase;
+}
+ul.navList, ul.subNavList {
+ float:left;
+ margin:0 25px 0 0;
+ padding:0;
+}
+ul.navList li{
+ list-style:none;
+ float:left;
+ padding: 5px 6px;
+ text-transform:uppercase;
+}
+ul.subNavList li{
+ list-style:none;
+ float:left;
+}
+.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link,
.bottomNav a:active, .bottomNav a:visited {
+ color:#FFFFFF;
+ text-decoration:none;
+ text-transform:uppercase;
+}
+.topNav a:hover, .bottomNav a:hover {
+ text-decoration:none;
+ color:#bb7a2a;
+ text-transform:uppercase;
+}
+.navBarCell1Rev {
+ background-color:#F8981D;
+ color:#253441;
+ margin: auto 5px;
+}
+.skipNav {
+ position:absolute;
+ top:auto;
+ left:-9999px;
+ overflow:hidden;
+}
+/*
+Page header and footer styles
+*/
+.header, .footer {
+ clear:both;
+ margin:0 20px;
+ padding:5px 0 0 0;
+}
+.indexHeader {
+ margin:10px;
+ position:relative;
+}
+.indexHeader span{
+ margin-right:15px;
+}
+.indexHeader h1 {
+ font-size:13px;
+}
+.title {
+ color:#2c4557;
+ margin:10px 0;
+}
+.subTitle {
+ margin:5px 0 0 0;
+}
+.header ul {
+ margin:0 0 15px 0;
+ padding:0;
+}
+.footer ul {
+ margin:20px 0 5px 0;
+}
+.header ul li, .footer ul li {
+ list-style:none;
+ font-size:13px;
+}
+/*
+Heading styles
+*/
+div.details ul.blockList ul.blockList ul.blockList li.blockList h4,
div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
+ background-color:#dee3e9;
+ border:1px solid #d0d9e0;
+ margin:0 0 6px -8px;
+ padding:7px 5px;
+}
+ul.blockList ul.blockList ul.blockList li.blockList h3 {
+ background-color:#dee3e9;
+ border:1px solid #d0d9e0;
+ margin:0 0 6px -8px;
+ padding:7px 5px;
+}
+ul.blockList ul.blockList li.blockList h3 {
+ padding:0;
+ margin:15px 0;
+}
+ul.blockList li.blockList h2 {
+ padding:0px 0 20px 0;
+}
+/*
+Page layout container styles
+*/
+.contentContainer, .sourceContainer, .classUseContainer,
.serializedFormContainer, .constantValuesContainer {
+ clear:both;
+ padding:10px 20px;
+ position:relative;
+}
+.indexContainer {
+ margin:10px;
+ position:relative;
+ font-size:12px;
+}
+.indexContainer h2 {
+ font-size:13px;
+ padding:0 0 3px 0;
+}
+.indexContainer ul {
+ margin:0;
+ padding:0;
+}
+.indexContainer ul li {
+ list-style:none;
+ padding-top:2px;
+}
+.contentContainer .description dl dt, .contentContainer .details dl dt,
.serializedFormContainer dl dt {
+ font-size:12px;
+ font-weight:bold;
+ margin:10px 0 0 0;
+ color:#4E4E4E;
+}
+.contentContainer .description dl dd, .contentContainer .details dl dd,
.serializedFormContainer dl dd {
+ margin:5px 0 10px 0px;
+ font-size:14px;
+ font-family:'DejaVu Sans Mono',monospace;
+}
+.serializedFormContainer dl.nameValue dt {
+ margin-left:1px;
+ font-size:1.1em;
+ display:inline;
+ font-weight:bold;
+}
+.serializedFormContainer dl.nameValue dd {
+ margin:0 0 0 1px;
+ font-size:1.1em;
+ display:inline;
+}
+/*
+List styles
+*/
+ul.horizontal li {
+ display:inline;
+ font-size:0.9em;
+}
+ul.inheritance {
+ margin:0;
+ padding:0;
+}
+ul.inheritance li {
+ display:inline;
+ list-style:none;
+}
+ul.inheritance li ul.inheritance {
+ margin-left:15px;
+ padding-left:15px;
+ padding-top:1px;
+}
+ul.blockList, ul.blockListLast {
+ margin:10px 0 10px 0;
+ padding:0;
+}
+ul.blockList li.blockList, ul.blockListLast li.blockList {
+ list-style:none;
+ margin-bottom:15px;
+ line-height:1.4;
+}
+ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast
li.blockList {
+ padding:0px 20px 5px 10px;
+ border:1px solid #ededed;
+ background-color:#f8f8f8;
+}
+ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList
ul.blockListLast li.blockList {
+ padding:0 0 5px 8px;
+ background-color:#ffffff;
+ border:none;
+}
+ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
+ margin-left:0;
+ padding-left:0;
+ padding-bottom:15px;
+ border:none;
+}
+ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
+ list-style:none;
+ border-bottom:none;
+ padding-bottom:0;
+}
+table tr td dl, table tr td dl dt, table tr td dl dd {
+ margin-top:0;
+ margin-bottom:1px;
+}
+/*
+Table styles
+*/
+.overviewSummary, .memberSummary, .typeSummary, .useSummary,
.constantsSummary, .deprecatedSummary {
+ width:100%;
+ border-left:1px solid #EEE;
+ border-right:1px solid #EEE;
+ border-bottom:1px solid #EEE;
+}
+.overviewSummary, .memberSummary {
+ padding:0px;
+}
+.overviewSummary caption, .memberSummary caption, .typeSummary caption,
+.useSummary caption, .constantsSummary caption, .deprecatedSummary caption {
+ position:relative;
+ text-align:left;
+ background-repeat:no-repeat;
+ color:#253441;
+ font-weight:bold;
+ clear:none;
+ overflow:hidden;
+ padding:0px;
+ padding-top:10px;
+ padding-left:1px;
+ margin:0px;
+ white-space:pre;
+}
+.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary
caption a:link,
+.useSummary caption a:link, .constantsSummary caption a:link,
.deprecatedSummary caption a:link,
+.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary
caption a:hover,
+.useSummary caption a:hover, .constantsSummary caption a:hover,
.deprecatedSummary caption a:hover,
+.overviewSummary caption a:active, .memberSummary caption a:active,
.typeSummary caption a:active,
+.useSummary caption a:active, .constantsSummary caption a:active,
.deprecatedSummary caption a:active,
+.overviewSummary caption a:visited, .memberSummary caption a:visited,
.typeSummary caption a:visited,
+.useSummary caption a:visited, .constantsSummary caption a:visited,
.deprecatedSummary caption a:visited {
+ color:#FFFFFF;
+}
+.overviewSummary caption span, .memberSummary caption span, .typeSummary
caption span,
+.useSummary caption span, .constantsSummary caption span, .deprecatedSummary
caption span {
+ white-space:nowrap;
+ padding-top:5px;
+ padding-left:12px;
+ padding-right:12px;
+ padding-bottom:7px;
+ display:inline-block;
+ float:left;
+ background-color:#F8981D;
+ border: none;
+ height:16px;
+}
+.memberSummary caption span.activeTableTab span {
+ white-space:nowrap;
+ padding-top:5px;
+ padding-left:12px;
+ padding-right:12px;
+ margin-right:3px;
+ display:inline-block;
+ float:left;
+ background-color:#F8981D;
+ height:16px;
+}
+.memberSummary caption span.tableTab span {
+ white-space:nowrap;
+ padding-top:5px;
+ padding-left:12px;
+ padding-right:12px;
+ margin-right:3px;
+ display:inline-block;
+ float:left;
+ background-color:#4D7A97;
+ height:16px;
+}
+.memberSummary caption span.tableTab, .memberSummary caption
span.activeTableTab {
+ padding-top:0px;
+ padding-left:0px;
+ padding-right:0px;
+ background-image:none;
+ float:none;
+ display:inline;
+}
+.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd,
+.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd {
+ display:none;
+ width:5px;
+ position:relative;
+ float:left;
+ background-color:#F8981D;
+}
+.memberSummary .activeTableTab .tabEnd {
+ display:none;
+ width:5px;
+ margin-right:3px;
+ position:relative;
+ float:left;
+ background-color:#F8981D;
+}
+.memberSummary .tableTab .tabEnd {
+ display:none;
+ width:5px;
+ margin-right:3px;
+ position:relative;
+ background-color:#4D7A97;
+ float:left;
-/* Headings */
-h1 { font-size: 145% }
+}
+.overviewSummary td, .memberSummary td, .typeSummary td,
+.useSummary td, .constantsSummary td, .deprecatedSummary td {
+ text-align:left;
+ padding:0px 0px 12px 10px;
+}
+th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th,
+td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{
+ vertical-align:top;
+ padding-right:0px;
+ padding-top:8px;
+ padding-bottom:3px;
+}
+th.colFirst, th.colLast, th.colOne, .constantsSummary th {
+ background:#dee3e9;
+ text-align:left;
+ padding:8px 3px 3px 7px;
+}
+td.colFirst, th.colFirst {
+ white-space:nowrap;
+ font-size:13px;
+}
+td.colLast, th.colLast {
+ font-size:13px;
+}
+td.colOne, th.colOne {
+ font-size:13px;
+}
+.overviewSummary td.colFirst, .overviewSummary th.colFirst,
+.useSummary td.colFirst, .useSummary th.colFirst,
+.overviewSummary td.colOne, .overviewSummary th.colOne,
+.memberSummary td.colFirst, .memberSummary th.colFirst,
+.memberSummary td.colOne, .memberSummary th.colOne,
+.typeSummary td.colFirst{
+ width:25%;
+ vertical-align:top;
+}
+td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover,
td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst
a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited,
td.colLast a:hover, .constantValuesContainer td a:link,
.constantValuesContainer td a:active, .constantValuesContainer td a:visited,
.constantValuesContainer td a:hover {
+ font-weight:bold;
+}
+.tableSubHeadingColor {
+ background-color:#EEEEFF;
+}
+.altColor {
+ background-color:#FFFFFF;
+}
+.rowColor {
+ background-color:#EEEEEF;
+}
+/*
+Content styles
+*/
+.description pre {
+ margin-top:0;
+}
+.deprecatedContent {
+ margin:0;
+ padding:10px 0;
+}
+.docSummary {
+ padding:0;
+}
-/* Table colors */
-.TableHeadingColor { background: #CCCCFF } /* Dark mauve */
-.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */
-.TableRowColor { background: #FFFFFF } /* White */
-
-/* Font used in left-hand frame lists */
-.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif
}
-.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif
}
-.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif
}
-
-/* Navigation bar fonts and colors */
-.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */
-.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */
-.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;}
-.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
+ul.blockList ul.blockList ul.blockList li.blockList h3 {
+ font-style:normal;
+}
-.NavBarCell2 { font-family: Arial, Helvetica, sans-serif;
background-color:#FFFFFF;}
-.NavBarCell3 { font-family: Arial, Helvetica, sans-serif;
background-color:#FFFFFF;}
+div.block {
+ font-size:14px;
+ font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif;
+}
+td.colLast div {
+ padding-top:0px;
+}
+
+
+td.colLast a {
+ padding-bottom:3px;
+}
+/*
+Formatting effect styles
+*/
+.sourceLineNo {
+ color:green;
+ padding:0 30px 0 0;
+}
+h1.hidden {
+ visibility:hidden;
+ overflow:hidden;
+ font-size:10px;
+}
+.block {
+ display:block;
+ margin:3px 10px 2px 0px;
+ color:#474747;
+}
+.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink,
+.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel,
+.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink {
+ font-weight:bold;
+}
+.deprecationComment, .emphasizedPhrase, .interfaceName {
+ font-style:italic;
+}
+
+div.block div.block span.deprecationComment, div.block div.block
span.emphasizedPhrase,
+div.block div.block span.interfaceName {
+ font-style:normal;
+}
+
+div.contentContainer ul.blockList li.blockList h2{
+ padding-bottom:0px;
+}
\ No newline at end of file
Modified:
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/allclasses-frame.html
==============================================================================
---
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/allclasses-frame.html
(original)
+++
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/allclasses-frame.html
Tue May 21 03:41:41 2019
@@ -1,20 +1,18 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
-<html xml:lang="en" lang="en">
- <head>
- <meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
- <title>All Classes</title>
- <link rel="stylesheet" type="text/css" href="stylesheet.css"
title="style" />
- </head>
- <body>
-
- <h3>All Classes</h3>
-
- <ul>
- <li>
- <a
href="org/apache/fulcrum/pool/PoolServiceTest.html"
target="classFrame">PoolServiceTest</a>
- </li>
- </ul>
-
- </body>
- </html>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <!-- generated by Apache Maven JXR (jdk8) -->
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>All Classes</title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css"
title="style" />
+ </head>
+ <body>
+ <h1 class="bar">All Classes</h1>
+ <div class="indexContainer">
+ <ul>
+ <li><a
href="org/apache/fulcrum/pool/PoolServiceTest.html#PoolServiceTest"
target="classFrame">PoolServiceTest</a></li>
+ </ul>
+ </div>
+ </body>
+</html>
\ No newline at end of file
Modified:
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/index.html
==============================================================================
---
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/index.html
(original)
+++
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/index.html
Tue May 21 03:41:41 2019
@@ -1,24 +1,75 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"DTD/xhtml1-frameset.dtd">
-<html xml:lang="en" lang="en">
- <head>
- <meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
- <title>Fulcrum Pool 1.0.5-SNAPSHOT Reference</title>
- </head>
- <frameset cols="20%,80%">
- <frameset rows="30%,70%">
- <frame src="overview-frame.html"
name="packageListFrame" />
- <frame src="allclasses-frame.html" name="packageFrame"
/>
- </frameset>
- <frame src="overview-summary.html" name="classFrame" />
- <noframes>
- <body>
- <h1>Frame Alert</h1>
- <p>
- You don't have frames. Go <a
href="overview-summary.html">here</a>
- </p>
- </body>
- </noframes>
- </frameset>
-</html>
-
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
+<html xml:lang="en" lang="en">
+ <!-- this is a JXR report set (jdk8) -->
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>Fulcrum Pool 1.0.5 Reference</title>
+ <script type="text/javascript">
+ tmpTargetPage = "" + window.location.search;
+ if (tmpTargetPage != "" && tmpTargetPage != "undefined")
+ tmpTargetPage = tmpTargetPage.substring(1);
+ if (tmpTargetPage.indexOf(":") != -1 || (tmpTargetPage != "" &&
!validURL(tmpTargetPage)))
+ tmpTargetPage = "undefined";
+ targetPage = tmpTargetPage;
+ function validURL(url) {
+ try {
+ url = decodeURIComponent(url);
+ }
+ catch (error) {
+ return false;
+ }
+ var pos = url.indexOf(".html");
+ if (pos == -1 || pos != url.length - 5)
+ return false;
+ var allowNumber = false;
+ var allowSep = false;
+ var seenDot = false;
+ for (var i = 0; i < url.length - 5; i++) {
+ var ch = url.charAt(i);
+ if ('a' <= ch && ch <= 'z' ||
+ 'A' <= ch && ch <= 'Z' ||
+ ch == '$' ||
+ ch == '_' ||
+ ch.charCodeAt(0) > 127) {
+ allowNumber = true;
+ allowSep = true;
+ } else if ('0' <= ch && ch <= '9'
+ || ch == '-') {
+ if (!allowNumber)
+ return false;
+ } else if (ch == '/' || ch == '.') {
+ if (!allowSep)
+ return false;
+ allowNumber = false;
+ allowSep = false;
+ if (ch == '.')
+ seenDot = true;
+ if (ch == '/' && seenDot)
+ return false;
+ } else {
+ return false;
+ }
+ }
+ return true;
+ }
+ function loadFrames() {
+ if (targetPage != "" && targetPage != "undefined")
+ top.classFrame.location = top.targetPage;
+ }
+ </script>
+ </head>
+ <frameset cols="20%,80%" title="Documentation frame"
onload="top.loadFrames()">
+ <frameset rows="30%,70%" title="Left frames" onload="top.loadFrames()">
+ <frame src="overview-frame.html" name="packageListFrame"
title="All Packages"/>
+ <frame src="allclasses-frame.html" name="packageFrame" title="All
classes and interfaces (except non-static nested types)"/>
+ </frameset>
+ <frame src="overview-summary.html" name="classFrame" title="Package,
class and interface descriptions" scrolling="yes"/>
+ <noframes>
+ <h1>Frame Alert</h1>
+ <p>
+ You don't have frames. Go <a
href="overview-summary.html">here</a>
+ </p>
+ </noframes>
+ </frameset>
+</html>
\ No newline at end of file
Modified:
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/org/apache/fulcrum/pool/PoolServiceTest.html
==============================================================================
---
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/org/apache/fulcrum/pool/PoolServiceTest.html
(original)
+++
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/org/apache/fulcrum/pool/PoolServiceTest.html
Tue May 21 03:41:41 2019
@@ -1,126 +1,155 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>PoolServiceTest xref</title>
<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
</head>
<body>
-<pre>
-
-<a name="1" href="#1">1</a> <strong class="jxr_keyword">package</strong>
org.apache.fulcrum.pool;
-<a name="2" href="#2">2</a>
-<a name="3" href="#3">3</a> <em class="jxr_comment">/*</em>
-<a name="4" href="#4">4</a> <em class="jxr_comment"> * Licensed to the
Apache Software Foundation (ASF) under one</em>
-<a name="5" href="#5">5</a> <em class="jxr_comment"> * or more contributor
license agreements. See the NOTICE file</em>
-<a name="6" href="#6">6</a> <em class="jxr_comment"> * distributed with this
work for additional information</em>
-<a name="7" href="#7">7</a> <em class="jxr_comment"> * regarding copyright
ownership. The ASF licenses this file</em>
-<a name="8" href="#8">8</a> <em class="jxr_comment"> * to you under the
Apache License, Version 2.0 (the</em>
-<a name="9" href="#9">9</a> <em class="jxr_comment"> * "License"); you may
not use this file except in compliance</em>
-<a name="10" href="#10">10</a> <em class="jxr_comment"> * with the License.
You may obtain a copy of the License at</em>
-<a name="11" href="#11">11</a> <em class="jxr_comment"> *</em>
-<a name="12" href="#12">12</a> <em class="jxr_comment"> * <a
href="http://www.apache.org/licenses/LICENSE-2.0"
target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
-<a name="13" href="#13">13</a> <em class="jxr_comment"> *</em>
-<a name="14" href="#14">14</a> <em class="jxr_comment"> * Unless required by
applicable law or agreed to in writing,</em>
-<a name="15" href="#15">15</a> <em class="jxr_comment"> * software
distributed under the License is distributed on an</em>
-<a name="16" href="#16">16</a> <em class="jxr_comment"> * "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY</em>
-<a name="17" href="#17">17</a> <em class="jxr_comment"> * KIND, either
express or implied. See the License for the</em>
-<a name="18" href="#18">18</a> <em class="jxr_comment"> * specific language
governing permissions and limitations</em>
-<a name="19" href="#19">19</a> <em class="jxr_comment"> * under the
License.</em>
-<a name="20" href="#20">20</a> <em class="jxr_comment"> */</em>
-<a name="21" href="#21">21</a>
-<a name="22" href="#22">22</a> <strong class="jxr_keyword">import</strong>
org.apache.fulcrum.testcontainer.BaseUnitTest;
-<a name="23" href="#23">23</a>
-<a name="24" href="#24">24</a> <em class="jxr_javadoccomment">/**</em>
-<a name="25" href="#25">25</a> <em class="jxr_javadoccomment"> * @author Eric
Pugh</em>
-<a name="26" href="#26">26</a> <em class="jxr_javadoccomment"> * @author
<a href="<a href="mailto:[email protected]"
target="alexandria_uri">mailto:[email protected]</a>">Stephen
McConnell</a></em>
-<a name="27" href="#27">27</a> <em class="jxr_javadoccomment"> *</em>
-<a name="28" href="#28">28</a> <em class="jxr_javadoccomment"> * To change
the template for this generated type comment go to</em>
-<a name="29" href="#29">29</a> <em class="jxr_javadoccomment"> *
Window>Preferences>Java>Code Generation>Code and Comments</em>
-<a name="30" href="#30">30</a> <em class="jxr_javadoccomment"> */</em>
-<a name="31" href="#31">31</a> <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a
href="../../../../org/apache/fulcrum/pool/PoolServiceTest.html">PoolServiceTest</a>
<strong class="jxr_keyword">extends</strong> BaseUnitTest
-<a name="32" href="#32">32</a> {
-<a name="33" href="#33">33</a> <strong
class="jxr_keyword">private</strong> PoolService poolService = <strong
class="jxr_keyword">null</strong>;
-<a name="34" href="#34">34</a> <em class="jxr_javadoccomment">/**</em>
-<a name="35" href="#35">35</a> <em class="jxr_javadoccomment"> *
Defines the testcase name for JUnit.</em>
-<a name="36" href="#36">36</a> <em class="jxr_javadoccomment"> *</em>
-<a name="37" href="#37">37</a> <em class="jxr_javadoccomment"> *
@param name the testcase's name.</em>
-<a name="38" href="#38">38</a> <em class="jxr_javadoccomment"> */</em>
-<a name="39" href="#39">39</a> <strong
class="jxr_keyword">public</strong> <a
href="../../../../org/apache/fulcrum/pool/PoolServiceTest.html">PoolServiceTest</a>(String
name)
-<a name="40" href="#40">40</a> {
-<a name="41" href="#41">41</a> <strong
class="jxr_keyword">super</strong>(name);
-<a name="42" href="#42">42</a> }
-<a name="43" href="#43">43</a>
-<a name="44" href="#44">44</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
setUp() <strong class="jxr_keyword">throws</strong> Exception
-<a name="45" href="#45">45</a> {
-<a name="46" href="#46">46</a> <strong
class="jxr_keyword">super</strong>.setUp();
-<a name="47" href="#47">47</a>
-<a name="48" href="#48">48</a> poolService = (PoolService) <strong
class="jxr_keyword">this</strong>.resolve( PoolService.<strong
class="jxr_keyword">class</strong>.getName() );
-<a name="49" href="#49">49</a> }
-<a name="50" href="#50">50</a>
-<a name="51" href="#51">51</a> <em class="jxr_comment">/*</em>
-<a name="52" href="#52">52</a> <em class="jxr_comment"> * Class to test
for Object getInstance(Class)</em>
-<a name="53" href="#53">53</a> <em class="jxr_comment"> */</em>
-<a name="54" href="#54">54</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testGetInstanceClass() <strong class="jxr_keyword">throws</strong> PoolException
-<a name="55" href="#55">55</a> {
-<a name="56" href="#56">56</a> Object object =
poolService.getInstance(StringBuffer.<strong
class="jxr_keyword">class</strong>);
-<a name="57" href="#57">57</a> assertTrue(object instanceof
StringBuffer);
-<a name="58" href="#58">58</a>
-<a name="59" href="#59">59</a> }
-<a name="60" href="#60">60</a>
-<a name="61" href="#61">61</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testPutInstance()
-<a name="62" href="#62">62</a> {
-<a name="63" href="#63">63</a> String s = <span class="jxr_string">"I
am a string"</span>;
-<a name="64" href="#64">64</a> assertEquals(0,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="65" href="#65">65</a> poolService.putInstance(s);
-<a name="66" href="#66">66</a> assertEquals(1,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="67" href="#67">67</a>
-<a name="68" href="#68">68</a> }
-<a name="69" href="#69">69</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testGetSetCapacity()
-<a name="70" href="#70">70</a> {
-<a name="71" href="#71">71</a> assertEquals(128,
poolService.getCapacity(<span class="jxr_string">"java.lang.String"</span>));
-<a name="72" href="#72">72</a> poolService.setCapacity(<span
class="jxr_string">"java.lang.String"</span>, 278);
-<a name="73" href="#73">73</a> assertEquals(278,
poolService.getCapacity(<span class="jxr_string">"java.lang.String"</span>));
-<a name="74" href="#74">74</a>
-<a name="75" href="#75">75</a> }
-<a name="76" href="#76">76</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testGetSize()
-<a name="77" href="#77">77</a> {
-<a name="78" href="#78">78</a> String s = <span class="jxr_string">"I
am a string"</span>;
-<a name="79" href="#79">79</a> assertEquals(0,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="80" href="#80">80</a> poolService.putInstance(s);
-<a name="81" href="#81">81</a> assertEquals(1,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="82" href="#82">82</a>
-<a name="83" href="#83">83</a> }
-<a name="84" href="#84">84</a> <em class="jxr_comment">/*</em>
-<a name="85" href="#85">85</a> <em class="jxr_comment"> * Class to test
for void clearPool(String)</em>
-<a name="86" href="#86">86</a> <em class="jxr_comment"> */</em>
-<a name="87" href="#87">87</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testClearPoolString()
-<a name="88" href="#88">88</a> {
-<a name="89" href="#89">89</a> String s = <span class="jxr_string">"I
am a string"</span>;
-<a name="90" href="#90">90</a> assertEquals(0,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="91" href="#91">91</a> poolService.putInstance(s);
-<a name="92" href="#92">92</a> assertEquals(1,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="93" href="#93">93</a> poolService.clearPool(<span
class="jxr_string">"java.lang.String"</span>);
-<a name="94" href="#94">94</a> assertEquals(0,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="95" href="#95">95</a>
-<a name="96" href="#96">96</a> }
-<a name="97" href="#97">97</a> <em class="jxr_comment">/*</em>
-<a name="98" href="#98">98</a> <em class="jxr_comment"> * Class to test
for void clearPool()</em>
-<a name="99" href="#99">99</a> <em class="jxr_comment"> */</em>
-<a name="100" href="#100">100</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testClearPool()
-<a name="101" href="#101">101</a> {
-<a name="102" href="#102">102</a> String s = <span
class="jxr_string">"I am a string"</span>;
-<a name="103" href="#103">103</a> assertEquals(0,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="104" href="#104">104</a> poolService.putInstance(s);
-<a name="105" href="#105">105</a> poolService.putInstance(<strong
class="jxr_keyword">new</strong> Double(32));
-<a name="106" href="#106">106</a> assertEquals(1,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="107" href="#107">107</a> poolService.clearPool();
-<a name="108" href="#108">108</a> assertEquals(0,
poolService.getSize(<span class="jxr_string">"java.lang.String"</span>));
-<a name="109" href="#109">109</a> assertEquals(0,
poolService.getSize(<span class="jxr_string">"java.lang.Double"</span>));
-<a name="110" href="#110">110</a>
-<a name="111" href="#111">111</a> }
-<a name="112" href="#112">112</a> }
+<div id="overview"><a
href="../../../../../testapidocs/org/apache/fulcrum/pool/PoolServiceTest.html">View
Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a> <strong
class="jxr_keyword">package</strong> org.apache.fulcrum.pool;
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
org.junit.jupiter.api.Assertions.assertEquals;
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a> <em
class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a> <em
class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under
one</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a> <em
class="jxr_comment"> * or more contributor license agreements. See the NOTICE
file</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a> <em
class="jxr_comment"> * distributed with this work for additional
information</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a> <em
class="jxr_comment"> * regarding copyright ownership. The ASF licenses this
file</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a> <em
class="jxr_comment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a> <em
class="jxr_comment"> * "License"); you may not use this file except in
compliance</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a> <em
class="jxr_comment"> * with the License. You may obtain a copy of the License
at</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em
class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em
class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0"
target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a> <em
class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a> <em
class="jxr_comment"> * Unless required by applicable law or agreed to in
writing,</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a> <em
class="jxr_comment"> * software distributed under the License is distributed on
an</em>
+<a class="jxr_linenumber" name="L19" href="#L19">19</a> <em
class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
ANY</em>
+<a class="jxr_linenumber" name="L20" href="#L20">20</a> <em
class="jxr_comment"> * KIND, either express or implied. See the License for
the</em>
+<a class="jxr_linenumber" name="L21" href="#L21">21</a> <em
class="jxr_comment"> * specific language governing permissions and
limitations</em>
+<a class="jxr_linenumber" name="L22" href="#L22">22</a> <em
class="jxr_comment"> * under the License.</em>
+<a class="jxr_linenumber" name="L23" href="#L23">23</a> <em
class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
org.junit.jupiter.api.Assertions.assertTrue;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong
class="jxr_keyword">import</strong>
org.apache.fulcrum.testcontainer.BaseUnit5Test;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong
class="jxr_keyword">import</strong> org.junit.jupiter.api.BeforeEach;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong
class="jxr_keyword">import</strong> org.junit.jupiter.api.Test;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em
class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em
class="jxr_javadoccomment"> * Basic testing of the PoolService Component</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a> <em
class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a> <em
class="jxr_javadoccomment"> * @author <a href="<a
href="mailto:[email protected]"
target="alexandria_uri">mailto:[email protected]</a>">Jeffery
Painter</a></em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a> <em
class="jxr_javadoccomment"> * @author Eric Pugh</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a> <em
class="jxr_javadoccomment"> * @author <a href="<a
href="mailto:[email protected]"
target="alexandria_uri">mailto:[email protected]</a>">Stephen
McConnell</a></em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a> <em
class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong>
<a name="PoolServiceTest"
href="../../../../org/apache/fulcrum/pool/PoolServiceTest.html#PoolServiceTest">PoolServiceTest</a>
<strong class="jxr_keyword">extends</strong> BaseUnit5Test
+<a class="jxr_linenumber" name="L41" href="#L41">41</a> {
+<a class="jxr_linenumber" name="L42" href="#L42">42</a> <em
class="jxr_javadoccomment">/** Default pool service **/</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a> <strong
class="jxr_keyword">private</strong> PoolService poolService = <strong
class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>
+<a class="jxr_linenumber" name="L45" href="#L45">45</a> <em
class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L46" href="#L46">46</a> <em
class="jxr_javadoccomment"> * Perform pool service setup</em>
+<a class="jxr_linenumber" name="L47" href="#L47">47</a> <em
class="jxr_javadoccomment"> * </em>
+<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em
class="jxr_javadoccomment"> * @throws Exception generic exception</em>
+<a class="jxr_linenumber" name="L49" href="#L49">49</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L50" href="#L50">50</a> @BeforeEach
+<a class="jxr_linenumber" name="L51" href="#L51">51</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
setUp() <strong class="jxr_keyword">throws</strong> Exception
+<a class="jxr_linenumber" name="L52" href="#L52">52</a> {
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>
setConfigurationFileName(<span
class="jxr_string">"src/test/TestComponentConfig.xml"</span>);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>
setRoleFileName(<span class="jxr_string">"src/test/TestRoleConfig.xml"</span>);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a> poolService =
(PoolService) <strong
class="jxr_keyword">this</strong>.lookup(PoolService.<strong
class="jxr_keyword">class</strong>.getName());
+<a class="jxr_linenumber" name="L56" href="#L56">56</a> }
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>
+<a class="jxr_linenumber" name="L58" href="#L58">58</a> <em
class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L59" href="#L59">59</a> <em
class="jxr_javadoccomment"> * Class to test for Object
getInstance(Class)</em>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a> <em
class="jxr_javadoccomment"> * </em>
+<a class="jxr_linenumber" name="L61" href="#L61">61</a> <em
class="jxr_javadoccomment"> * @throws PoolException generic
exception</em>
+<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L63" href="#L63">63</a> @Test
+<a class="jxr_linenumber" name="L64" href="#L64">64</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testGetInstanceClass() <strong class="jxr_keyword">throws</strong>
PoolException
+<a class="jxr_linenumber" name="L65" href="#L65">65</a> {
+<a class="jxr_linenumber" name="L66" href="#L66">66</a> Object
object = poolService.getInstance(StringBuilder.<strong
class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>
assertTrue(object instanceof StringBuilder);
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>
+<a class="jxr_linenumber" name="L69" href="#L69">69</a> }
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>
+<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em
class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L72" href="#L72">72</a> <em
class="jxr_javadoccomment"> * Test adding an instance to the pool</em>
+<a class="jxr_linenumber" name="L73" href="#L73">73</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L74" href="#L74">74</a> @Test
+<a class="jxr_linenumber" name="L75" href="#L75">75</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testPutInstance()
+<a class="jxr_linenumber" name="L76" href="#L76">76</a> {
+<a class="jxr_linenumber" name="L77" href="#L77">77</a> String
s = <span class="jxr_string">"I am a string"</span>;
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>
assertEquals(0, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>
poolService.putInstance(s);
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>
assertEquals(1, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>
+<a class="jxr_linenumber" name="L82" href="#L82">82</a> }
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>
+<a class="jxr_linenumber" name="L84" href="#L84">84</a> <em
class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L85" href="#L85">85</a> <em
class="jxr_javadoccomment"> * Test altering pool capacity</em>
+<a class="jxr_linenumber" name="L86" href="#L86">86</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L87" href="#L87">87</a> @Test
+<a class="jxr_linenumber" name="L88" href="#L88">88</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testGetSetCapacity()
+<a class="jxr_linenumber" name="L89" href="#L89">89</a> {
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>
assertEquals(128, poolService.getCapacity(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>
poolService.setCapacity(<span class="jxr_string">"java.lang.String"</span>,
278);
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>
assertEquals(278, poolService.getCapacity(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>
+<a class="jxr_linenumber" name="L94" href="#L94">94</a> }
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>
+<a class="jxr_linenumber" name="L96" href="#L96">96</a> <em
class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L97" href="#L97">97</a> <em
class="jxr_javadoccomment"> * Test to determine current size of the
pool</em>
+<a class="jxr_linenumber" name="L98" href="#L98">98</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L99" href="#L99">99</a> @Test
+<a class="jxr_linenumber" name="L100" href="#L100">100</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testGetSize()
+<a class="jxr_linenumber" name="L101" href="#L101">101</a> {
+<a class="jxr_linenumber" name="L102" href="#L102">102</a> String
s = <span class="jxr_string">"I am a string"</span>;
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>
assertEquals(0, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>
poolService.putInstance(s);
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>
assertEquals(1, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>
+<a class="jxr_linenumber" name="L107" href="#L107">107</a> }
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>
+<a class="jxr_linenumber" name="L109" href="#L109">109</a> <em
class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L110" href="#L110">110</a> <em
class="jxr_javadoccomment"> * Class to test for void clearPool(String)</em>
+<a class="jxr_linenumber" name="L111" href="#L111">111</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L112" href="#L112">112</a> @Test
+<a class="jxr_linenumber" name="L113" href="#L113">113</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testClearPoolString()
+<a class="jxr_linenumber" name="L114" href="#L114">114</a> {
+<a class="jxr_linenumber" name="L115" href="#L115">115</a> String
s = <span class="jxr_string">"I am a string"</span>;
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>
assertEquals(0, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>
poolService.putInstance(s);
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>
assertEquals(1, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>
poolService.clearPool(<span class="jxr_string">"java.lang.String"</span>);
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>
assertEquals(0, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L123" href="#L123">123</a> }
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>
+<a class="jxr_linenumber" name="L125" href="#L125">125</a> <em
class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L126" href="#L126">126</a> <em
class="jxr_javadoccomment"> * Class to test for void clearPool()</em>
+<a class="jxr_linenumber" name="L127" href="#L127">127</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L128" href="#L128">128</a> @Test
+<a class="jxr_linenumber" name="L129" href="#L129">129</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testClearPool()
+<a class="jxr_linenumber" name="L130" href="#L130">130</a> {
+<a class="jxr_linenumber" name="L131" href="#L131">131</a> String
s = <span class="jxr_string">"I am a string"</span>;
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>
assertEquals(0, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>
poolService.putInstance(s);
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>
poolService.putInstance(<strong class="jxr_keyword">new</strong> Double(32));
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>
assertEquals(1, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L137" href="#L137">137</a>
+<a class="jxr_linenumber" name="L138" href="#L138">138</a>
poolService.clearPool();
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>
assertEquals(0, poolService.getSize(<span
class="jxr_string">"java.lang.String"</span>));
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>
assertEquals(0, poolService.getSize(<span
class="jxr_string">"java.lang.Double"</span>));
+<a class="jxr_linenumber" name="L141" href="#L141">141</a> }
+<a class="jxr_linenumber" name="L142" href="#L142">142</a> }
</pre>
-<hr/><div id="footer">This page was automatically generated by <a
href="http://maven.apache.org/">Maven</a></div></body>
-</html>
-
+<hr/>
+<div id="footer">Copyright © 2005–2019 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
+</body>
+</html>
\ No newline at end of file
Modified:
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/org/apache/fulcrum/pool/package-frame.html
==============================================================================
---
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/org/apache/fulcrum/pool/package-frame.html
(original)
+++
websites/production/turbine/content/fulcrum/fulcrum-pool/xref-test/org/apache/fulcrum/pool/package-frame.html
Tue May 21 03:41:41 2019
@@ -1,24 +1,21 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
-<html xml:lang="en" lang="en">
- <head>
- <meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
- <title>Fulcrum Pool 1.0.5-SNAPSHOT Reference Package
org.apache.fulcrum.pool</title>
- <link rel="stylesheet" type="text/css"
href="../../../../stylesheet.css" title="style" />
- </head>
- <body>
-
- <h3>
- <a href="package-summary.html"
target="classFrame">org.apache.fulcrum.pool</a>
- </h3>
-
- <h3>Classes</h3>
-
- <ul>
- <li>
- <a href="PoolServiceTest.html"
target="classFrame">PoolServiceTest</a>
- </li>
- </ul>
-
- </body>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <!-- generated by Apache Maven JXR (jdk8) -->
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>Fulcrum Pool 1.0.5 Reference Package
org.apache.fulcrum.pool</title>
+ <link rel="stylesheet" type="text/css"
href="../../../../stylesheet.css" title="style" />
+ </head>
+ <body>
+ <h1 class="bar"><a href="package-summary.html"
target="classFrame">org.apache.fulcrum.pool</a></h1>
+ <div class="indexContainer">
+ <h2 title="Classes">Classes</h2>
+ <ul title="Classes">
+ <li>
+ <a href="PoolServiceTest.html#PoolServiceTest"
target="classFrame">PoolServiceTest</a>
+ </li>
+ </ul>
+ </div>
+ </body>
</html>
\ No newline at end of file