You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2010/05/27 20:10:26 UTC
svn commit: r948937 [6/33] - in /ode/trunk: ./
agents/src/main/java/org/apache/ode/agents/memory/ axis2-war/
axis2-war/src/main/assembly/ axis2-war/src/main/webapp/
axis2-war/src/main/webapp/WEB-INF/
axis2-war/src/main/webapp/WEB-INF/classes/ axis2-war...
Modified: ode/trunk/axis2-war/src/main/webapp/js/yui/element-beta.js
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/js/yui/element-beta.js?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/js/yui/element-beta.js (original)
+++ ode/trunk/axis2-war/src/main/webapp/js/yui/element-beta.js Thu May 27 18:09:53 2010
@@ -14,7 +14,7 @@ version: 2.5.2
*/
YAHOO.util.Attribute = function(hash, owner) {
- if (owner) {
+ if (owner) {
this.owner = owner;
this.configure(hash, true);
}
@@ -27,28 +27,28 @@ YAHOO.util.Attribute.prototype = {
* @type String
*/
name: undefined,
-
+
/**
* The value of the attribute.
* @property value
* @type String
*/
value: null,
-
+
/**
* The owner of the attribute.
* @property owner
* @type YAHOO.util.AttributeProvider
*/
owner: null,
-
+
/**
* Whether or not the attribute is read only.
* @property readOnly
* @type Boolean
*/
readOnly: false,
-
+
/**
* Whether or not the attribute can only be written once.
* @property writeOnce
@@ -63,7 +63,7 @@ YAHOO.util.Attribute.prototype = {
* @type Object
*/
_initialConfig: null,
-
+
/**
* Whether or not the attribute's value has been set.
* @private
@@ -71,7 +71,7 @@ YAHOO.util.Attribute.prototype = {
* @type Boolean
*/
_written: false,
-
+
/**
* The method to use when setting the attribute's value.
* The method recieves the new value as the only argument.
@@ -79,7 +79,7 @@ YAHOO.util.Attribute.prototype = {
* @type Function
*/
method: null,
-
+
/**
* The validator to use when setting the attribute's value.
* @property validator
@@ -87,7 +87,7 @@ YAHOO.util.Attribute.prototype = {
* @return Boolean
*/
validator: null,
-
+
/**
* Retrieves the current value of the attribute.
* @method getValue
@@ -96,7 +96,7 @@ YAHOO.util.Attribute.prototype = {
getValue: function() {
return this.value;
},
-
+
/**
* Sets the value of the attribute and fires beforeChange and change events.
* @method setValue
@@ -108,17 +108,17 @@ YAHOO.util.Attribute.prototype = {
var beforeRetVal;
var owner = this.owner;
var name = this.name;
-
+
var event = {
- type: name,
+ type: name,
prevValue: this.getValue(),
newValue: value
};
-
+
if (this.readOnly || ( this.writeOnce && this._written) ) {
return false; // write not allowed
}
-
+
if (this.validator && !this.validator.call(owner, value) ) {
return false; // invalid value
}
@@ -133,19 +133,19 @@ YAHOO.util.Attribute.prototype = {
if (this.method) {
this.method.call(owner, value);
}
-
+
this.value = value;
this._written = true;
-
+
event.type = name;
-
+
if (!silent) {
this.owner.fireChangeEvent(event);
}
-
+
return true;
},
-
+
/**
* Allows for configuring the Attribute's properties.
* @method configure
@@ -156,7 +156,7 @@ YAHOO.util.Attribute.prototype = {
map = map || {};
this._written = false; // reset writeOnce
this._initialConfig = this._initialConfig || {};
-
+
for (var key in map) {
if ( key && YAHOO.lang.hasOwnProperty(map, key) ) {
this[key] = map[key];
@@ -166,7 +166,7 @@ YAHOO.util.Attribute.prototype = {
}
}
},
-
+
/**
* Resets the value to the initial config value.
* @method resetValue
@@ -175,7 +175,7 @@ YAHOO.util.Attribute.prototype = {
resetValue: function() {
return this.setValue(this._initialConfig.value);
},
-
+
/**
* Resets the attribute config to the initial config state.
* @method resetConfig
@@ -183,7 +183,7 @@ YAHOO.util.Attribute.prototype = {
resetConfig: function() {
this.configure(this._initialConfig);
},
-
+
/**
* Resets the value to the current value.
* Useful when values may have gotten out of sync with actual properties.
@@ -203,7 +203,7 @@ YAHOO.util.Attribute.prototype = {
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
*/
-
+
/**
* Provides and manages YAHOO.util.Attribute instances
* @namespace YAHOO.util
@@ -213,7 +213,7 @@ YAHOO.util.Attribute.prototype = {
YAHOO.util.AttributeProvider = function() {};
YAHOO.util.AttributeProvider.prototype = {
-
+
/**
* A key-value map of Attribute configurations
* @property _configs
@@ -230,14 +230,14 @@ YAHOO.util.Attribute.prototype = {
get: function(key){
this._configs = this._configs || {};
var config = this._configs[key];
-
+
if (!config) {
return undefined;
}
-
+
return config.value;
},
-
+
/**
* Sets the value of a config.
* @method set
@@ -249,14 +249,14 @@ YAHOO.util.Attribute.prototype = {
set: function(key, value, silent){
this._configs = this._configs || {};
var config = this._configs[key];
-
+
if (!config) {
return false;
}
-
+
return config.setValue(value, silent);
},
-
+
/**
* Returns an array of attribute names.
* @method getAttributeKeys
@@ -268,15 +268,15 @@ YAHOO.util.Attribute.prototype = {
var config;
for (var key in this._configs) {
config = this._configs[key];
- if ( Lang.hasOwnProperty(this._configs, key) &&
+ if ( Lang.hasOwnProperty(this._configs, key) &&
!Lang.isUndefined(config) ) {
keys[keys.length] = key;
}
}
-
+
return keys;
},
-
+
/**
* Sets multiple attribute values.
* @method setAttributes
@@ -290,7 +290,7 @@ YAHOO.util.Attribute.prototype = {
}
}
},
-
+
/**
* Resets the specified attribute's value to its initial value.
* @method resetValue
@@ -306,7 +306,7 @@ YAHOO.util.Attribute.prototype = {
}
return false;
},
-
+
/**
* Sets the attribute's value to its current value.
* @method refresh
@@ -315,22 +315,22 @@ YAHOO.util.Attribute.prototype = {
*/
refresh: function(key, silent){
this._configs = this._configs;
-
- key = ( ( Lang.isString(key) ) ? [key] : key ) ||
+
+ key = ( ( Lang.isString(key) ) ? [key] : key ) ||
this.getAttributeKeys();
-
- for (var i = 0, len = key.length; i < len; ++i) {
+
+ for (var i = 0, len = key.length; i < len; ++i) {
if ( // only set if there is a value and not null
- this._configs[key[i]] &&
+ this._configs[key[i]] &&
! Lang.isUndefined(this._configs[key[i]].value) &&
! Lang.isNull(this._configs[key[i]].value) ) {
this._configs[key[i]].refresh(silent);
}
}
},
-
+
/**
- * Adds an Attribute to the AttributeProvider instance.
+ * Adds an Attribute to the AttributeProvider instance.
* @method register
* @param {String} key The attribute's name
* @param {Object} map A key-value map containing the
@@ -340,8 +340,8 @@ YAHOO.util.Attribute.prototype = {
register: function(key, map) {
this.setAttributeConfig(key, map);
},
-
-
+
+
/**
* Returns the attribute's properties.
* @method getAttributeConfig
@@ -354,18 +354,18 @@ YAHOO.util.Attribute.prototype = {
this._configs = this._configs || {};
var config = this._configs[key] || {};
var map = {}; // returning a copy to prevent overrides
-
+
for (key in config) {
if ( Lang.hasOwnProperty(config, key) ) {
map[key] = config[key];
}
}
-
+
return map;
},
-
+
/**
- * Sets or updates an Attribute instance's properties.
+ * Sets or updates an Attribute instance's properties.
* @method setAttributeConfig
* @param {String} key The attribute's name.
* @param {Object} map A key-value map of attribute properties
@@ -381,9 +381,9 @@ YAHOO.util.Attribute.prototype = {
this._configs[key].configure(map, init);
}
},
-
+
/**
- * Sets or updates an Attribute instance's properties.
+ * Sets or updates an Attribute instance's properties.
* @method configureAttribute
* @param {String} key The attribute's name.
* @param {Object} map A key-value map of attribute properties
@@ -393,9 +393,9 @@ YAHOO.util.Attribute.prototype = {
configureAttribute: function(key, map, init) {
this.setAttributeConfig(key, map, init);
},
-
+
/**
- * Resets an attribute to its intial configuration.
+ * Resets an attribute to its intial configuration.
* @method resetAttributeConfig
* @param {String} key The attribute's name.
* @private
@@ -404,7 +404,7 @@ YAHOO.util.Attribute.prototype = {
this._configs = this._configs || {};
this._configs[key].resetConfig();
},
-
+
// wrapper for EventProvider.subscribe
// to create events on the fly
subscribe: function(type, callback) {
@@ -426,7 +426,7 @@ YAHOO.util.Attribute.prototype = {
},
/**
- * Fires the attribute's beforeChange event.
+ * Fires the attribute's beforeChange event.
* @method fireBeforeChangeEvent
* @param {String} key The attribute's name.
* @param {Obj} e The event object to pass to handlers.
@@ -437,9 +437,9 @@ YAHOO.util.Attribute.prototype = {
e.type = type;
return this.fireEvent(e.type, e);
},
-
+
/**
- * Fires the attribute's change event.
+ * Fires the attribute's change event.
* @method fireChangeEvent
* @param {String} key The attribute's name.
* @param {Obj} e The event object to pass to the handlers.
@@ -453,7 +453,7 @@ YAHOO.util.Attribute.prototype = {
return new YAHOO.util.Attribute(map, this);
}
};
-
+
YAHOO.augment(YAHOO.util.AttributeProvider, YAHOO.util.EventProvider);
})();
@@ -464,7 +464,7 @@ var Dom = YAHOO.util.Dom,
/**
* Element provides an wrapper object to simplify adding
- * event listeners, using dom methods, and managing attributes.
+ * event listeners, using dom methods, and managing attributes.
* @module element
* @namespace YAHOO.util
* @requires yahoo, dom, event
@@ -473,11 +473,11 @@ var Dom = YAHOO.util.Dom,
/**
* Element provides an wrapper object to simplify adding
- * event listeners, using dom methods, and managing attributes.
+ * event listeners, using dom methods, and managing attributes.
* @class Element
* @uses YAHOO.util.AttributeProvider
* @constructor
- * @param el {HTMLElement | String} The html element that
+ * @param el {HTMLElement | String} The html element that
* represents the Element.
* @param {Object} map A key-value map of initial config names and values
*/
@@ -498,13 +498,13 @@ YAHOO.util.Element.prototype = {
/**
* Wrapper for HTMLElement method.
* @method appendChild
- * @param {YAHOO.util.Element || HTMLElement} child The element to append.
+ * @param {YAHOO.util.Element || HTMLElement} child The element to append.
*/
appendChild: function(child) {
child = child.get ? child.get('element') : child;
this.get('element').appendChild(child);
},
-
+
/**
* Wrapper for HTMLElement method.
* @method getElementsByTagName
@@ -513,7 +513,7 @@ YAHOO.util.Element.prototype = {
getElementsByTagName: function(tag) {
return this.get('element').getElementsByTagName(tag);
},
-
+
/**
* Wrapper for HTMLElement method.
* @method hasChildNodes
@@ -522,7 +522,7 @@ YAHOO.util.Element.prototype = {
hasChildNodes: function() {
return this.get('element').hasChildNodes();
},
-
+
/**
* Wrapper for HTMLElement method.
* @method insertBefore
@@ -533,10 +533,10 @@ YAHOO.util.Element.prototype = {
insertBefore: function(element, before) {
element = element.get ? element.get('element') : element;
before = (before && before.get) ? before.get('element') : before;
-
+
this.get('element').insertBefore(element, before);
},
-
+
/**
* Wrapper for HTMLElement method.
* @method removeChild
@@ -547,7 +547,7 @@ YAHOO.util.Element.prototype = {
this.get('element').removeChild(child);
return true;
},
-
+
/**
* Wrapper for HTMLElement method.
* @method replaceChild
@@ -560,7 +560,7 @@ YAHOO.util.Element.prototype = {
return this.get('element').replaceChild(newNode, oldNode);
},
-
+
/**
* Registers Element specific attributes.
* @method initAttributes
@@ -570,21 +570,21 @@ YAHOO.util.Element.prototype = {
},
/**
- * Adds a listener for the given event. These may be DOM or
+ * Adds a listener for the given event. These may be DOM or
* customEvent listeners. Any event that is fired via fireEvent
- * can be listened for. All handlers receive an event object.
+ * can be listened for. All handlers receive an event object.
* @method addListener
* @param {String} type The name of the event to listen for
* @param {Function} fn The handler to call when the event fires
* @param {Any} obj A variable to pass to the handler
- * @param {Object} scope The object to use for the scope of the handler
+ * @param {Object} scope The object to use for the scope of the handler
*/
addListener: function(type, fn, obj, scope) {
var el = this.get('element');
scope = scope || this;
-
+
el = this.get('id') || el;
- var self = this;
+ var self = this;
if (!this._events[type]) { // create on the fly
if ( this.DOM_EVENTS[type] ) {
YAHOO.util.Event.addListener(el, type, function(e) {
@@ -594,34 +594,34 @@ YAHOO.util.Element.prototype = {
self.fireEvent(type, e);
}, obj, scope);
}
-
+
this.createEvent(type, this);
}
-
+
YAHOO.util.EventProvider.prototype.subscribe.apply(this, arguments); // notify via customEvent
},
-
-
+
+
/**
* Alias for addListener
* @method on
* @param {String} type The name of the event to listen for
* @param {Function} fn The function call when the event fires
* @param {Any} obj A variable to pass to the handler
- * @param {Object} scope The object to use for the scope of the handler
+ * @param {Object} scope The object to use for the scope of the handler
*/
on: function() { this.addListener.apply(this, arguments); },
-
+
/**
* Alias for addListener
* @method subscribe
* @param {String} type The name of the event to listen for
* @param {Function} fn The function call when the event fires
* @param {Any} obj A variable to pass to the handler
- * @param {Object} scope The object to use for the scope of the handler
+ * @param {Object} scope The object to use for the scope of the handler
*/
subscribe: function() { this.addListener.apply(this, arguments); },
-
+
/**
* Remove an event listener
* @method removeListener
@@ -631,7 +631,7 @@ YAHOO.util.Element.prototype = {
removeListener: function(type, fn) {
this.unsubscribe.apply(this, arguments);
},
-
+
/**
* Wrapper for Dom method.
* @method addClass
@@ -640,7 +640,7 @@ YAHOO.util.Element.prototype = {
addClass: function(className) {
Dom.addClass(this.get('element'), className);
},
-
+
/**
* Wrapper for Dom method.
* @method getElementsByClassName
@@ -653,7 +653,7 @@ YAHOO.util.Element.prototype = {
return Dom.getElementsByClassName(className, tag,
this.get('element') );
},
-
+
/**
* Wrapper for Dom method.
* @method hasClass
@@ -661,9 +661,9 @@ YAHOO.util.Element.prototype = {
* @return {Boolean} Whether or not the element has the class name
*/
hasClass: function(className) {
- return Dom.hasClass(this.get('element'), className);
+ return Dom.hasClass(this.get('element'), className);
},
-
+
/**
* Wrapper for Dom method.
* @method removeClass
@@ -672,7 +672,7 @@ YAHOO.util.Element.prototype = {
removeClass: function(className) {
return Dom.removeClass(this.get('element'), className);
},
-
+
/**
* Wrapper for Dom method.
* @method replaceClass
@@ -680,10 +680,10 @@ YAHOO.util.Element.prototype = {
* @param {String} newClassName The className to add
*/
replaceClass: function(oldClassName, newClassName) {
- return Dom.replaceClass(this.get('element'),
+ return Dom.replaceClass(this.get('element'),
oldClassName, newClassName);
},
-
+
/**
* Wrapper for Dom method.
* @method setStyle
@@ -698,7 +698,7 @@ YAHOO.util.Element.prototype = {
return Dom.setStyle(el, property, value); // TODO: always queuing?
},
-
+
/**
* Wrapper for Dom method.
* @method getStyle
@@ -708,7 +708,7 @@ YAHOO.util.Element.prototype = {
getStyle: function(property) {
return Dom.getStyle(this.get('element'), property);
},
-
+
/**
* Apply any queued set calls.
* @method fireQueue
@@ -719,7 +719,7 @@ YAHOO.util.Element.prototype = {
this[queue[i][0]].apply(this, queue[i][1]);
}
},
-
+
/**
* Appends the HTMLElement into either the supplied parentNode.
* @method appendTo
@@ -728,25 +728,25 @@ YAHOO.util.Element.prototype = {
*/
appendTo: function(parent, before) {
parent = (parent.get) ? parent.get('element') : Dom.get(parent);
-
+
this.fireEvent('beforeAppendTo', {
type: 'beforeAppendTo',
target: parent
});
-
-
- before = (before && before.get) ?
+
+
+ before = (before && before.get) ?
before.get('element') : Dom.get(before);
var element = this.get('element');
-
+
if (!element) {
return false;
}
-
+
if (!parent) {
return false;
}
-
+
if (element.parent != parent) {
if (before) {
parent.insertBefore(element, before);
@@ -754,14 +754,14 @@ YAHOO.util.Element.prototype = {
parent.appendChild(element);
}
}
-
-
+
+
this.fireEvent('appendTo', {
type: 'appendTo',
target: parent
});
},
-
+
get: function(key) {
var configs = this._configs || {};
var el = configs.element; // avoid loop due to 'element'
@@ -775,7 +775,7 @@ YAHOO.util.Element.prototype = {
setAttributes: function(map, silent){
var el = this.get('element');
for (var key in map) {
- // need to configure if setting unconfigured HTMLElement attribute
+ // need to configure if setting unconfigured HTMLElement attribute
if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
this.setAttributeConfig(key);
}
@@ -795,11 +795,11 @@ YAHOO.util.Element.prototype = {
this._queue[this._queue.length] = ['set', arguments];
if (this._configs[key]) {
this._configs[key].value = value; // so "get" works while queueing
-
+
}
return;
}
-
+
// set it on the element if not configured and is an HTML attribute
if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
_registerHTMLAttr.call(this, key);
@@ -807,7 +807,7 @@ YAHOO.util.Element.prototype = {
return AttributeProvider.prototype.set.apply(this, arguments);
},
-
+
setAttributeConfig: function(key, map, init) {
var el = this.get('element');
@@ -818,18 +818,18 @@ YAHOO.util.Element.prototype = {
}
this._configOrder.push(key);
},
-
+
getAttributeKeys: function() {
var el = this.get('element');
var keys = AttributeProvider.prototype.getAttributeKeys.call(this);
-
+
//add any unconfigured element keys
for (var key in el) {
if (!this._configs[key]) {
keys[key] = keys[key] || el[key];
}
}
-
+
return keys;
},
@@ -837,9 +837,9 @@ YAHOO.util.Element.prototype = {
this._events[type] = true;
AttributeProvider.prototype.createEvent.apply(this, arguments);
},
-
+
init: function(el, attr) {
- _initElement.apply(this, arguments);
+ _initElement.apply(this, arguments);
}
};
@@ -847,7 +847,7 @@ var _initElement = function(el, attr) {
this._queue = this._queue || [];
this._events = this._events || {};
this._configs = this._configs || {};
- this._configOrder = [];
+ this._configOrder = [];
attr = attr || {};
attr.element = attr.element || el || null;
@@ -859,8 +859,8 @@ var _initElement = function(el, attr) {
'keyup': true,
'mousedown': true,
'mousemove': true,
- 'mouseout': true,
- 'mouseover': true,
+ 'mouseout': true,
+ 'mouseover': true,
'mouseup': true,
'focus': true,
'blur': true,
@@ -877,21 +877,21 @@ var _initElement = function(el, attr) {
isReady = true;
_initHTMLElement.call(this, attr);
_initContent.call(this, attr);
- }
+ }
YAHOO.util.Event.onAvailable(attr.element, function() {
if (!isReady) { // otherwise already done
_initHTMLElement.call(this, attr);
}
- this.fireEvent('available', { type: 'available', target: attr.element });
+ this.fireEvent('available', { type: 'available', target: attr.element });
}, this, true);
-
+
YAHOO.util.Event.onContentReady(attr.element, function() {
if (!isReady) { // otherwise already done
_initContent.call(this, attr);
}
- this.fireEvent('contentReady', { type: 'contentReady', target: attr.element });
+ this.fireEvent('contentReady', { type: 'contentReady', target: attr.element });
}, this, true);
};
@@ -946,7 +946,7 @@ var _registerHTMLAttr = function(key, ma
* myTabs.addListener('available', handler);</code></p>
* @event available
*/
-
+
/**
* Fires when the Element's HTMLElement subtree is rendered.
* <p>See: <a href="#addListener">Element.addListener</a></p>
@@ -966,7 +966,7 @@ var _registerHTMLAttr = function(key, ma
* <p><strong>Event fields:</strong><br>
* <code><String> type</code> beforeAppendTo<br>
* <code><HTMLElement/Element>
- * target</code> the HTMLElement/Element being appended to
+ * target</code> the HTMLElement/Element being appended to
* <p><strong>Usage:</strong><br>
* <code>var handler = function(e) {var target = e.target};<br>
* myTabs.addListener('beforeAppendTo', handler);</code></p>
@@ -979,7 +979,7 @@ var _registerHTMLAttr = function(key, ma
* <p><strong>Event fields:</strong><br>
* <code><String> type</code> appendTo<br>
* <code><HTMLElement/Element>
- * target</code> the HTMLElement/Element being appended to
+ * target</code> the HTMLElement/Element being appended to
* <p><strong>Usage:</strong><br>
* <code>var handler = function(e) {var target = e.target};<br>
* myTabs.addListener('appendTo', handler);</code></p>
Modified: ode/trunk/axis2-war/src/main/webapp/js/yui/tab/skin-sam.css
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/js/yui/tab/skin-sam.css?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/js/yui/tab/skin-sam.css (original)
+++ ode/trunk/axis2-war/src/main/webapp/js/yui/tab/skin-sam.css Thu May 27 18:09:53 2010
@@ -10,7 +10,7 @@ version: 2.5.2
zoom:1;
}
-.yui-navset .yui-nav .selected {
+.yui-navset .yui-nav .selected {
margin-bottom:-1px; /* for overlap */
}
@@ -72,6 +72,6 @@ version: 2.5.2
}
.yui-navset .yui-content div div { /* kill inheritance */
- border:0;
+ border:0;
padding:0;
}
Modified: ode/trunk/axis2-war/src/main/webapp/js/yui/tab/skins/sam/tabview-skin.css
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/js/yui/tab/skins/sam/tabview-skin.css?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/js/yui/tab/skins/sam/tabview-skin.css (original)
+++ ode/trunk/axis2-war/src/main/webapp/js/yui/tab/skins/sam/tabview-skin.css Thu May 27 18:09:53 2010
@@ -21,7 +21,7 @@ version: 2.5.2
}
.yui-skin-sam .yui-navset .yui-nav .selected,
-.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected {
+.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected {
margin:0 0.16em -1px 0; /* for overlap */
}
@@ -106,11 +106,11 @@ version: 2.5.2
}
.yui-skin-sam .yui-navset-left .yui-nav .selected,
-.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected {
+.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected {
margin:0 -1px 0.16em 0;
}
-.yui-skin-sam .yui-navset-right .yui-nav .selected {
+.yui-skin-sam .yui-navset-right .yui-nav .selected {
margin:0 0 0.16em -1px;
}
@@ -158,18 +158,18 @@ version: 2.5.2
}
.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,
-.yui-skin-sam .yui-navset-bottom .yui-nav .selected {
+.yui-skin-sam .yui-navset-bottom .yui-nav .selected {
margin:-1px 0.16em 0 0; /* for overlap */
}
.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,
-.yui-skin-sam .yui-navset-bottom .yui-nav li {
+.yui-skin-sam .yui-navset-bottom .yui-nav li {
padding:0 0 1px 0; /* gecko: make room for overflow */
vertical-align:top;
}
.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li a,
-.yui-skin-sam .yui-navset-bottom .yui-nav li a {
+.yui-skin-sam .yui-navset-bottom .yui-nav li a {
}
.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,
Modified: ode/trunk/axis2-war/src/main/webapp/js/yui/tab/tabview-core.css
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/js/yui/tab/tabview-core.css?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/js/yui/tab/tabview-core.css (original)
+++ ode/trunk/axis2-war/src/main/webapp/js/yui/tab/tabview-core.css Thu May 27 18:09:53 2010
@@ -96,7 +96,7 @@ version: 2.5.2
.yui-navset-left .yui-nav,
.yui-navset-right .yui-nav {
position:absolute;
- z-index:1;
+ z-index:1;
}
.yui-navset-top .yui-nav,
Modified: ode/trunk/axis2-war/src/main/webapp/js/yui/tabview.js
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/js/yui/tabview.js?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/js/yui/tabview.js (original)
+++ ode/trunk/axis2-war/src/main/webapp/js/yui/tabview.js Thu May 27 18:09:53 2010
@@ -18,10 +18,10 @@ version: 2.5.2
* @class TabView
* @extends YAHOO.util.Element
* @constructor
- * @param {HTMLElement | String | Object} el(optional) The html
- * element that represents the TabView, or the attribute object to use.
+ * @param {HTMLElement | String | Object} el(optional) The html
+ * element that represents the TabView, or the attribute object to use.
* An element will be created if none provided.
- * @param {Object} attr (optional) A key map of the tabView's
+ * @param {Object} attr (optional) A key map of the tabView's
* initial attributes. Ignored if first arg is attributes object.
*/
YAHOO.widget.TabView = function(el, attr) {
@@ -30,59 +30,59 @@ version: 2.5.2
attr = el; // treat first arg as attr object
el = attr.element || null;
}
-
+
if (!el && !attr.element) { // create if we dont have one
el = _createTabViewElement.call(this, attr);
}
- YAHOO.widget.TabView.superclass.constructor.call(this, el, attr);
+ YAHOO.widget.TabView.superclass.constructor.call(this, el, attr);
};
YAHOO.extend(YAHOO.widget.TabView, YAHOO.util.Element);
-
+
var proto = YAHOO.widget.TabView.prototype;
var Dom = YAHOO.util.Dom;
var Event = YAHOO.util.Event;
var Tab = YAHOO.widget.Tab;
-
-
+
+
/**
- * The className to add when building from scratch.
+ * The className to add when building from scratch.
* @property CLASSNAME
* @default "navset"
*/
proto.CLASSNAME = 'yui-navset';
-
+
/**
* The className of the HTMLElement containing the TabView's tab elements
* to look for when building from existing markup, or to add when building
- * from scratch.
+ * from scratch.
* All childNodes of the tab container are treated as Tabs when building
* from existing markup.
* @property TAB_PARENT_CLASSNAME
* @default "nav"
*/
proto.TAB_PARENT_CLASSNAME = 'yui-nav';
-
+
/**
* The className of the HTMLElement containing the TabView's label elements
* to look for when building from existing markup, or to add when building
- * from scratch.
+ * from scratch.
* All childNodes of the content container are treated as content elements when
* building from existing markup.
* @property CONTENT_PARENT_CLASSNAME
* @default "nav-content"
*/
proto.CONTENT_PARENT_CLASSNAME = 'yui-content';
-
+
proto._tabParent = null;
- proto._contentParent = null;
-
+ proto._contentParent = null;
+
/**
- * Adds a Tab to the TabView instance.
+ * Adds a Tab to the TabView instance.
* If no index is specified, the tab is added to the end of the tab list.
* @method addTab
* @param {YAHOO.widget.Tab} tab A Tab instance to add.
- * @param {Integer} index The position to add the tab.
+ * @param {Integer} index The position to add the tab.
* @return void
*/
proto.addTab = function(tab, index) {
@@ -91,11 +91,11 @@ version: 2.5.2
this._queue[this._queue.length] = ['addTab', arguments];
return false;
}
-
+
index = (index === undefined) ? tabs.length : index;
-
+
var before = this.getTab(index);
-
+
var self = this;
var el = this.get('element');
var tabParent = this._tabParent;
@@ -113,12 +113,12 @@ version: 2.5.2
if ( contentEl && !Dom.isAncestor(contentParent, contentEl) ) {
contentParent.appendChild(contentEl);
}
-
+
if ( !tab.get('active') ) {
tab.set('contentVisible', false, true); /* hide if not active */
} else {
this.set('activeTab', tab, true);
-
+
}
var activate = function(e) {
@@ -130,16 +130,16 @@ version: 2.5.2
}
self.set('activeTab', this, silent);
};
-
+
tab.addListener( tab.get('activationEvent'), activate);
-
+
tab.addListener('activationEventChange', function(e) {
if (e.prevValue != e.newValue) {
tab.removeListener(e.prevValue, activate);
tab.addListener(e.newValue, activate);
}
});
-
+
tabs.splice(index, 0, tab);
};
@@ -153,7 +153,7 @@ version: 2.5.2
var el = this.get('element');
var target = YAHOO.util.Event.getTarget(e);
var tabParent = this._tabParent;
-
+
if (Dom.isAncestor(tabParent, target) ) {
var tabEl;
var tab = null;
@@ -168,14 +168,14 @@ version: 2.5.2
tab = tabs[i];
break; // note break
}
- }
-
+ }
+
if (tab) {
tab.fireEvent(e.type, e);
}
}
};
-
+
/**
* Returns the Tab instance at the specified index.
* @method getTab
@@ -185,7 +185,7 @@ version: 2.5.2
proto.getTab = function(index) {
return this.get('tabs')[index];
};
-
+
/**
* Returns the index of given tab.
* @method getTabIndex
@@ -201,10 +201,10 @@ version: 2.5.2
break;
}
}
-
+
return index;
};
-
+
/**
* Removes the specified Tab from the TabView.
* @method removeTab
@@ -225,13 +225,13 @@ version: 2.5.2
}
}
}
-
+
this._tabParent.removeChild( tab.get('element') );
this._contentParent.removeChild( tab.get('contentEl') );
this._configs.tabs.value.splice(index, 1);
-
+
};
-
+
/**
* Provides a readable name for the TabView instance.
* @method toString
@@ -239,9 +239,9 @@ version: 2.5.2
*/
proto.toString = function() {
var name = this.get('id') || this.get('tagName');
- return "TabView " + name;
+ return "TabView " + name;
};
-
+
/**
* The transiton to use when switching between tabs.
* @method contentTransition
@@ -250,7 +250,7 @@ version: 2.5.2
newTab.set('contentVisible', true);
oldTab.set('contentVisible', false);
};
-
+
/**
* setAttributeConfigs TabView specific properties.
* @method initAttributes
@@ -258,17 +258,17 @@ version: 2.5.2
*/
proto.initAttributes = function(attr) {
YAHOO.widget.TabView.superclass.initAttributes.call(this, attr);
-
+
if (!attr.orientation) {
attr.orientation = 'top';
}
-
+
var el = this.get('element');
if (!YAHOO.util.Dom.hasClass(el, this.CLASSNAME)) {
- YAHOO.util.Dom.addClass(el, this.CLASSNAME);
+ YAHOO.util.Dom.addClass(el, this.CLASSNAME);
}
-
+
/**
* The Tabs belonging to the TabView instance.
* @attribute tabs
@@ -285,20 +285,20 @@ version: 2.5.2
* @private
* @type HTMLElement
*/
- this._tabParent =
+ this._tabParent =
this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,
'ul' )[0] || _createTabParent.call(this);
-
+
/**
* The container of the tabView's content elements.
* @property _contentParent
* @type HTMLElement
* @private
*/
- this._contentParent =
+ this._contentParent =
this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,
'div')[0] || _createContentParent.call(this);
-
+
/**
* How the Tabs should be oriented relative to the TabView.
* @attribute orientation
@@ -310,11 +310,11 @@ version: 2.5.2
method: function(value) {
var current = this.get('orientation');
this.addClass('yui-navset-' + value);
-
+
if (current != value) {
this.removeClass('yui-navset-' + current);
}
-
+
switch(value) {
case 'bottom':
this.appendChild(this._tabParent);
@@ -322,7 +322,7 @@ version: 2.5.2
}
}
});
-
+
/**
* The index of the tab currently active.
* @attribute activeIndex
@@ -337,7 +337,7 @@ version: 2.5.2
return !this.getTab(value).get('disabled'); // cannot activate if disabled
}
});
-
+
/**
* The tab currently active.
* @attribute activeTab
@@ -347,16 +347,16 @@ version: 2.5.2
value: attr.activeTab,
method: function(tab) {
var activeTab = this.get('activeTab');
-
- if (tab) {
+
+ if (tab) {
tab.set('active', true);
this._configs['activeIndex'].value = this.getTabIndex(tab); // keep in sync
}
-
+
if (activeTab && activeTab != tab) {
activeTab.set('active', false);
}
-
+
if (activeTab && tab != activeTab) { // no transition if only 1
this.contentTransition(tab, activeTab);
} else if (tab) {
@@ -371,7 +371,7 @@ version: 2.5.2
if ( this._tabParent ) {
_initTabs.call(this);
}
-
+
// Due to delegation we add all DOM_EVENTS to the TabView container
// but IE will leak when unsupported events are added, so remove these
this.DOM_EVENTS.submit = false;
@@ -384,7 +384,7 @@ version: 2.5.2
}
}
};
-
+
/**
* Creates Tab instances from a collection of HTMLElements.
* @method initTabs
@@ -395,72 +395,72 @@ version: 2.5.2
var tab,
attr,
contentEl;
-
- var el = this.get('element');
+
+ var el = this.get('element');
var tabs = _getChildNodes(this._tabParent);
var contentElements = _getChildNodes(this._contentParent);
for (var i = 0, len = tabs.length; i < len; ++i) {
attr = {};
-
+
if (contentElements[i]) {
attr.contentEl = contentElements[i];
}
tab = new YAHOO.widget.Tab(tabs[i], attr);
this.addTab(tab);
-
+
if (tab.hasClass(tab.ACTIVE_CLASSNAME) ) {
this._configs.activeTab.value = tab; // dont invoke method
this._configs.activeIndex.value = this.getTabIndex(tab);
}
}
};
-
+
var _createTabViewElement = function(attr) {
var el = document.createElement('div');
if ( this.CLASSNAME ) {
el.className = this.CLASSNAME;
}
-
+
return el;
};
-
+
var _createTabParent = function(attr) {
var el = document.createElement('ul');
if ( this.TAB_PARENT_CLASSNAME ) {
el.className = this.TAB_PARENT_CLASSNAME;
}
-
+
this.get('element').appendChild(el);
-
+
return el;
};
-
+
var _createContentParent = function(attr) {
var el = document.createElement('div');
if ( this.CONTENT_PARENT_CLASSNAME ) {
el.className = this.CONTENT_PARENT_CLASSNAME;
}
-
+
this.get('element').appendChild(el);
-
+
return el;
};
-
+
var _getChildNodes = function(el) {
var nodes = [];
var childNodes = el.childNodes;
-
+
for (var i = 0, len = childNodes.length; i < len; ++i) {
if (childNodes[i].nodeType == 1) {
nodes[nodes.length] = childNodes[i];
}
}
-
+
return nodes;
};
})();
@@ -468,14 +468,14 @@ version: 2.5.2
(function() {
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event;
-
+
/**
* A representation of a Tab's label and content.
* @namespace YAHOO.widget
* @class Tab
* @extends YAHOO.util.Element
* @constructor
- * @param element {HTMLElement | String} (optional) The html element that
+ * @param element {HTMLElement | String} (optional) The html element that
* represents the TabView. An element will be created if none provided.
* @param {Object} properties A key map of initial properties
*/
@@ -497,15 +497,15 @@ version: 2.5.2
failure: function(o) {
}
};
-
+
Tab.superclass.constructor.call(this, el, attr);
-
+
this.DOM_EVENTS = {}; // delegating to tabView
};
YAHOO.extend(Tab, YAHOO.util.Element);
var proto = Tab.prototype;
-
+
/**
* The default tag name for a Tab's inner element.
* @property LABEL_INNER_TAGNAME
@@ -513,7 +513,7 @@ version: 2.5.2
* @default "em"
*/
proto.LABEL_TAGNAME = 'em';
-
+
/**
* The class name applied to active tabs.
* @property ACTIVE_CLASSNAME
@@ -521,7 +521,7 @@ version: 2.5.2
* @default "selected"
*/
proto.ACTIVE_CLASSNAME = 'selected';
-
+
/**
* The title applied to active tabs.
* @property ACTIVE_TITLE
@@ -537,7 +537,7 @@ version: 2.5.2
* @default "disabled"
*/
proto.DISABLED_CLASSNAME = 'disabled';
-
+
/**
* The class name applied to dynamic tabs while loading.
* @property LOADING_CLASSNAME
@@ -553,7 +553,7 @@ version: 2.5.2
* @type Object
*/
proto.dataConnection = null;
-
+
/**
* Object containing success and failure callbacks for loading data.
* @property loadHandler
@@ -562,7 +562,7 @@ version: 2.5.2
proto.loadHandler = null;
proto._loading = false;
-
+
/**
* Provides a readable name for the tab.
* @method toString
@@ -571,9 +571,9 @@ version: 2.5.2
proto.toString = function() {
var el = this.get('element');
var id = el.id || el.tagName;
- return "Tab " + id;
+ return "Tab " + id;
};
-
+
/**
* setAttributeConfigs TabView specific properties.
* @method initAttributes
@@ -582,9 +582,9 @@ version: 2.5.2
proto.initAttributes = function(attr) {
attr = attr || {};
Tab.superclass.initAttributes.call(this, attr);
-
+
var el = this.get('element');
-
+
/**
* The event that triggers the tab's activation.
* @attribute activationEvent
@@ -592,7 +592,7 @@ version: 2.5.2
*/
this.setAttributeConfig('activationEvent', {
value: attr.activationEvent || 'click'
- });
+ });
/**
* The element that contains the tab's label.
@@ -608,14 +608,14 @@ version: 2.5.2
if (current == value) {
return false; // already set
}
-
+
this.replaceChild(value, current);
} else if (el.firstChild) { // ensure label is firstChild by default
this.insertBefore(value, el.firstChild);
} else {
this.appendChild(value);
- }
- }
+ }
+ }
});
/**
@@ -630,11 +630,11 @@ version: 2.5.2
if (!labelEl) { // create if needed
this.set('labelEl', _createlabelEl.call(this));
}
-
+
_setLabel.call(this, value);
}
});
-
+
/**
* The HTMLElement that contains the tab's content.
* @attribute contentEl
@@ -653,7 +653,7 @@ version: 2.5.2
}
}
});
-
+
/**
* The tab's content.
* @attribute content
@@ -667,7 +667,7 @@ version: 2.5.2
});
var _dataLoaded = false;
-
+
/**
* The tab's data source, used for loading content dynamically.
* @attribute dataSrc
@@ -676,7 +676,7 @@ version: 2.5.2
this.setAttributeConfig('dataSrc', {
value: attr.dataSrc
});
-
+
/**
* Whether or not content should be reloaded for every view.
* @attribute cacheData
@@ -687,7 +687,7 @@ version: 2.5.2
value: attr.cacheData || false,
validator: YAHOO.lang.isBoolean
});
-
+
/**
* The method to use for the data request.
* @attribute loadMethod
@@ -703,13 +703,13 @@ version: 2.5.2
* Whether or not any data has been loaded from the server.
* @attribute dataLoaded
* @type Boolean
- */
+ */
this.setAttributeConfig('dataLoaded', {
value: false,
validator: YAHOO.lang.isBoolean,
writeOnce: true
});
-
+
/**
* Number if milliseconds before aborting and calling failure handler.
* @attribute dataTimeout
@@ -720,7 +720,7 @@ version: 2.5.2
value: attr.dataTimeout || null,
validator: YAHOO.lang.isNumber
});
-
+
/**
* Whether or not the tab is currently active.
* If a dataSrc is set for the tab, the content will be loaded from
@@ -743,7 +743,7 @@ version: 2.5.2
return YAHOO.lang.isBoolean(value) && !this.get('disabled') ;
}
});
-
+
/**
* Whether or not the tab is disabled.
* @attribute disabled
@@ -760,7 +760,7 @@ version: 2.5.2
},
validator: YAHOO.lang.isBoolean
});
-
+
/**
* The href of the tab's anchor element.
* @attribute href
@@ -775,7 +775,7 @@ version: 2.5.2
},
validator: YAHOO.lang.isString
});
-
+
/**
* The Whether or not the tab's content is visible.
* @attribute contentVisible
@@ -787,7 +787,7 @@ version: 2.5.2
method: function(value) {
if (value) {
this.get('contentEl').style.display = 'block';
-
+
if ( this.get('dataSrc') ) {
// load dynamic content unless already loading or loaded and caching
if ( !this._loading && !(this.get('dataLoaded') && this.get('cacheData')) ) {
@@ -797,23 +797,23 @@ version: 2.5.2
} else {
this.get('contentEl').style.display = 'none';
}
-
+
},
validator: YAHOO.lang.isBoolean
});
};
-
+
var _createTabElement = function(attr) {
var el = document.createElement('li');
var a = document.createElement('a');
-
+
a.href = attr.href || '#';
-
+
el.appendChild(a);
-
+
var label = attr.label || null;
var labelEl = attr.labelEl || null;
-
+
if (labelEl) { // user supplied labelEl
if (!label) { // user supplied label
label = _getLabel.call(this, labelEl);
@@ -821,47 +821,47 @@ version: 2.5.2
} else {
labelEl = _createlabelEl.call(this);
}
-
+
a.appendChild(labelEl);
-
+
return el;
};
-
+
var _getlabelEl = function() {
return this.getElementsByTagName(this.LABEL_TAGNAME)[0];
};
-
+
var _createlabelEl = function() {
var el = document.createElement(this.LABEL_TAGNAME);
return el;
};
-
+
var _setLabel = function(label) {
var el = this.get('labelEl');
el.innerHTML = label;
};
-
+
var _getLabel = function() {
var label,
el = this.get('labelEl');
-
+
if (!el) {
return undefined;
}
-
+
return el.innerHTML;
};
-
+
var _dataConnect = function() {
if (!YAHOO.util.Connect) {
return false;
}
Dom.addClass(this.get('contentEl').parentNode, this.LOADING_CLASSNAME);
- this._loading = true;
+ this._loading = true;
this.dataConnection = YAHOO.util.Connect.asyncRequest(
this.get('loadMethod'),
- this.get('dataSrc'),
+ this.get('dataSrc'),
{
success: function(o) {
this.loadHandler.success.call(this, o);
@@ -883,7 +883,7 @@ version: 2.5.2
}
);
};
-
+
YAHOO.widget.Tab = Tab;
})();
Modified: ode/trunk/axis2-war/src/main/webapp/processes.html
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/processes.html?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/processes.html (original)
+++ ode/trunk/axis2-war/src/main/webapp/processes.html Thu May 27 18:09:53 2010
@@ -12,8 +12,8 @@
</script>
<script type="text/javascript" src="js/ProcessManagementAPI.js">
</script>
-
-
+
+
<script type="text/javascript" src="js/yui/utilities.js">
</script>
<script type="text/javascript" src="js/yui/button.js"></script>
@@ -34,16 +34,16 @@
setInterval('org.apache.ode.ProcessHandling.populateContent()', 15000);
}
YAHOO.util.Event.onDOMReady(init);
- </script>
+ </script>
<style type="text/css">
button{
background:transparent url(../button/assets/add.gif) no-repeat scroll 10% 50%;
padding-left:2em;
- }
+ }
.link{
margin-left:5px;
color:blue;
- }
+ }
.myAccordion .yui-cms-accordion .yui-cms-item {
margin-bottom:10px;
}
@@ -82,12 +82,12 @@
<div id="insideW">
<div id="insideL">
<div id="content" class="yui-skin-sam">
-
-
+
+
</div>
</div>
</div>
</div>
-
+
</body>
</html>
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/Axis2TestBase.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/Axis2TestBase.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/Axis2TestBase.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/Axis2TestBase.java Thu May 27 18:09:53 2010
@@ -70,12 +70,12 @@ public abstract class Axis2TestBase {
protected ODEAxis2Server server;
protected String config;
-
+
protected static final String DO_NOT_OVERRIDE_CONFIG = "<DO_NOT_OVERRIDE_CONFIG>";
private static String originalOdePersistence = System.getProperty("ode.persistence");
private static String originalOdeConfigDir = System.getProperty("org.apache.ode.configDir");
-
+
static {
// disable deferred process instance cleanup for faster testing
System.setProperty(BpelServerImpl.DEFERRED_PROCESS_INSTANCE_CLEANUP_DISABLED_NAME, "true");
@@ -118,7 +118,7 @@ public abstract class Axis2TestBase {
} else {
System.out.println("Java system properties have been set to override ode configuration: " + configDirList);
}
-
+
final Iterator<String> itr = configDirList.iterator();
return new Iterator<Object[]>() {
public boolean hasNext() {
@@ -147,7 +147,7 @@ public abstract class Axis2TestBase {
}
}
}
-
+
public void startServer() throws Exception {
startServer("webapp/WEB-INF", "webapp/WEB-INF/conf/axis2.xml");
}
@@ -216,7 +216,7 @@ public abstract class Axis2TestBase {
System.clearProperty("org.apache.ode.configDir");
}
if( originalOdeConfigDir != null ) {
- System.setProperty("ode.persistence", originalOdePersistence);
+ System.setProperty("ode.persistence", originalOdePersistence);
} else {
System.clearProperty("ode.persistence");
}
@@ -302,7 +302,7 @@ public abstract class Axis2TestBase {
public String sendRequestFile(String endpoint, String bundleName, String filename) {
return sendRequestFile(endpoint, bundleName + "/" + filename);
}
-
+
public String sendRequestFile(String endpoint, String filename) {
try {
URL url = new URL(endpoint);
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeaderTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeaderTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeaderTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeaderTest.java Thu May 27 18:09:53 2010
@@ -47,7 +47,7 @@ public class SoapHeaderTest extends Axis
@Test(dataProvider="configs")
public void testSimplePassing() throws Exception {
server.deployService("TestSoapHeader", "dummy-service.wsdl",
- new QName("http://axis2.ode.apache.org", "DummyService"), "DummyServiceSOAP11port_http",
+ new QName("http://axis2.ode.apache.org", "DummyService"), "DummyServiceSOAP11port_http",
new MessageReceiver() {
@SuppressWarnings("deprecation")
public void receive(MessageContext messageCtx) throws AxisFault {
@@ -87,5 +87,5 @@ public class SoapHeaderTest extends Axis
server.undeployProcess("TestStructuredFault");
}
-
+
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinHibTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinHibTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinHibTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinHibTest.java Thu May 27 18:09:53 2010
@@ -22,6 +22,6 @@ package org.apache.ode.axis2.correlation
public class CorrelationJoinHibTest extends CorrelationJoinTest {
@Override
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.hib-derby";
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.hib-derby";
}
}
\ No newline at end of file
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinLazyHibTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinLazyHibTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinLazyHibTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinLazyHibTest.java Thu May 27 18:09:53 2010
@@ -22,6 +22,6 @@ package org.apache.ode.axis2.correlation
public class CorrelationJoinLazyHibTest extends CorrelationJoinLazyTest {
@Override
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.hib-derby";
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.hib-derby";
}
}
\ No newline at end of file
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinLazyTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinLazyTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinLazyTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinLazyTest.java Thu May 27 18:09:53 2010
@@ -30,13 +30,13 @@ public class CorrelationJoinLazyTest ext
/**
* Tests a message being saved by no instance waiting for it. The saved message is picked up
* when the third message arrives, and is consumed.
- *
+ *
* @throws Exception
*/
@Test(dataProvider="configs")
public void testCorrelationJoin() throws Exception {
final String bundleName = "TestCorrelationJoinLazy";
-
+
// deploy the required service
server.deployService(DummyService.class.getCanonicalName());
if (server.isDeployed(bundleName)) server.undeployProcess(bundleName);
@@ -53,7 +53,7 @@ public class CorrelationJoinLazyTest ext
}
}
}.start();
-
+
new Thread() {
public void run() {
try {
@@ -65,7 +65,7 @@ public class CorrelationJoinLazyTest ext
}
}
}.start();
-
+
try {
String response = server.sendRequestFile("http://localhost:8888/processes/correlationMultiTest",
bundleName, "testRequest.soap");
@@ -79,6 +79,6 @@ public class CorrelationJoinLazyTest ext
}
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
}
}
\ No newline at end of file
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationJoinTest.java Thu May 27 18:09:53 2010
@@ -29,13 +29,13 @@ import static org.testng.Assert.*;
public class CorrelationJoinTest extends Axis2TestBase implements ODEConfigDirAware {
/**
* Tests rendezvous
- *
+ *
* @throws Exception
*/
@Test(dataProvider="configs")
public void testCorrelationJoin() throws Exception {
final String bundleName = "TestCorrelationJoin";
-
+
// deploy the required service
server.deployService(DummyService.class.getCanonicalName());
if (server.isDeployed(bundleName)) server.undeployProcess(bundleName);
@@ -52,7 +52,7 @@ public class CorrelationJoinTest extends
}
}
}.start();
-
+
new Thread() {
public void run() {
try {
@@ -64,7 +64,7 @@ public class CorrelationJoinTest extends
}
}
}.start();
-
+
try {
String response = server.sendRequestFile("http://localhost:8888/processes/correlationMultiTest",
bundleName, "testRequest.soap");
@@ -78,6 +78,6 @@ public class CorrelationJoinTest extends
}
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
}
}
\ No newline at end of file
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationMultiHibTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationMultiHibTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationMultiHibTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationMultiHibTest.java Thu May 27 18:09:53 2010
@@ -22,6 +22,6 @@ package org.apache.ode.axis2.correlation
public class CorrelationMultiHibTest extends CorrelationMultiTest {
@Override
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.hib-derby";
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.hib-derby";
}
}
\ No newline at end of file
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationMultiTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationMultiTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationMultiTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationMultiTest.java Thu May 27 18:09:53 2010
@@ -30,7 +30,7 @@ public class CorrelationMultiTest extend
@Test(dataProvider="configs")
public void testCorrelationMulti() throws Exception {
final String bundleName = "TestCorrelationMulti";
-
+
// deploy the required service
server.deployService(DummyService.class.getCanonicalName());
if (server.isDeployed(bundleName)) server.undeployProcess(bundleName);
@@ -60,6 +60,6 @@ public class CorrelationMultiTest extend
}
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
}
}
\ No newline at end of file
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/correlation/CorrelationUnicityTest.java Thu May 27 18:09:53 2010
@@ -44,7 +44,7 @@ public class CorrelationUnicityTest exte
System.out.println(response);
assertTrue(response.contains("correlationUnicity1"));
}
-
+
{
String response = server.sendRequestFile("http://localhost:8888/processes/correlationMultiTest",
bundleName, "testRequest.soap");
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/InstanceCountTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/InstanceCountTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/InstanceCountTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/InstanceCountTest.java Thu May 27 18:09:53 2010
@@ -51,7 +51,7 @@ import javax.xml.namespace.QName;
/**
- * Test the limit on the number of process instances.
+ * Test the limit on the number of process instances.
*
* @author $author$
* @version $Revision$
@@ -65,7 +65,7 @@ public class InstanceCountTest extends A
/**
* test case set up
*
- * @throws Exception Exception
+ * @throws Exception Exception
*/
@BeforeMethod
protected void setUp() throws Exception {
@@ -82,28 +82,28 @@ public class InstanceCountTest extends A
/**
* test case tear down
*
- * @throws Exception Exception
+ * @throws Exception Exception
*/
@AfterMethod
protected void tearDown() throws Exception {
super.tearDown();
}
-
+
/**
* Tests rendezvous
- *
+ *
* @throws Exception
*/
String firstResponse, secondResponse;
boolean secondStarted;
-
+
@Test(dataProvider="configs")
public void testCorrelationJoin() throws Exception {
final String bundleName = "TestCorrelationJoin";
-
+
firstResponse = secondResponse = null;
secondStarted = true;
-
+
server.getODEServer().getBpelServer().setInstanceThrottledMaximumCount(1);
// deploy the required service
server.deployService(DummyService.class.getCanonicalName());
@@ -120,8 +120,8 @@ public class InstanceCountTest extends A
fail(e.getMessage());
}
}
- }.start();
-
+ }.start();
+
Thread processOne = new Thread() {
public void run() {
try {
@@ -134,7 +134,7 @@ public class InstanceCountTest extends A
}
};
processOne.start();
-
+
Thread processTwo = new Thread() {
public void run() {
try {
@@ -155,7 +155,7 @@ public class InstanceCountTest extends A
server.undeployProcess(bundleName);
fail("The second instance was allowed to start");
}
-
+
new Thread() {
public void run() {
try {
@@ -169,7 +169,7 @@ public class InstanceCountTest extends A
}.start();
try {
- processOne.join();
+ processOne.join();
assertTrue(firstResponse.contains(">1;2;3;<"));
} finally {
server.undeployProcess(bundleName);
@@ -177,6 +177,6 @@ public class InstanceCountTest extends A
}
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
- }
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
+ }
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/ProcessCountTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/ProcessCountTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/ProcessCountTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/ProcessCountTest.java Thu May 27 18:09:53 2010
@@ -54,7 +54,7 @@ import javax.xml.namespace.QName;
/**
- * Test the limit on the number of process instances.
+ * Test the limit on the number of process instances.
*
* @author $author$
* @version $Revision$
@@ -68,7 +68,7 @@ public class ProcessCountTest extends Ax
/**
* test case set up
*
- * @throws Exception Exception
+ * @throws Exception Exception
*/
@BeforeMethod
protected void setUp() throws Exception {
@@ -85,29 +85,29 @@ public class ProcessCountTest extends Ax
/**
* test case tear down
*
- * @throws Exception Exception
+ * @throws Exception Exception
*/
@AfterMethod
protected void tearDown() throws Exception {
super.tearDown();
}
-
+
/**
* Tests rendezvous
- *
+ *
* @throws Exception
*/
String firstResponse, secondResponse;
boolean secondStarted;
String nsAttr;
-
+
@Test(dataProvider="configs")
public void testCorrelationJoin() throws Exception {
final String bundleOne = "TestCorrelationJoin", bundleTwo = "TestAttributeNamespaces";
-
+
firstResponse = secondResponse = null;
secondStarted = true;
-
+
server.getODEServer().getBpelServer().setProcessThrottledMaximumCount(0);
// deploy the first service
@@ -128,17 +128,17 @@ public class ProcessCountTest extends Ax
};
processOne.start();
processOne.join();
-
+
try {
- processOne.join();
+ processOne.join();
assertTrue(firstResponse.contains("tooManyProcesses"), firstResponse);
} finally {
server.undeployProcess(bundleOne);
}
-
+
}
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
- }
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
+ }
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/ProcessSizeTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/ProcessSizeTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/ProcessSizeTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/hydration/ProcessSizeTest.java Thu May 27 18:09:53 2010
@@ -54,7 +54,7 @@ import javax.xml.namespace.QName;
/**
- * Test the limit on the number of process instances.
+ * Test the limit on the number of process instances.
*
* @author $author$
* @version $Revision$
@@ -68,7 +68,7 @@ public class ProcessSizeTest extends Axi
/**
* test case set up
*
- * @throws Exception Exception
+ * @throws Exception Exception
*/
@BeforeMethod
protected void setUp() throws Exception {
@@ -85,29 +85,29 @@ public class ProcessSizeTest extends Axi
/**
* test case tear down
*
- * @throws Exception Exception
+ * @throws Exception Exception
*/
@AfterMethod
protected void tearDown() throws Exception {
super.tearDown();
}
-
+
/**
* Tests rendezvous
- *
+ *
* @throws Exception
*/
String firstResponse, secondResponse;
boolean secondStarted;
String nsAttr;
-
+
@Test(dataProvider="configs")
public void testCorrelationJoin() throws Exception {
final String bundleOne = "TestCorrelationJoin", bundleTwo = "TestAttributeNamespaces";
-
+
firstResponse = secondResponse = null;
secondStarted = true;
-
+
server.getODEServer().getBpelServer().setProcessThrottledMaximumSize(0);
// deploy the first service
@@ -128,17 +128,17 @@ public class ProcessSizeTest extends Axi
};
processOne.start();
processOne.join();
-
+
try {
- processOne.join();
+ processOne.join();
assertTrue(firstResponse.contains("tooHugeProcesses"), firstResponse);
} finally {
server.undeployProcess(bundleOne);
}
-
+
}
public String getODEConfigDir() {
- return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
- }
+ return getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.jpa-derby";
+ }
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFailureTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFailureTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFailureTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFailureTest.java Thu May 27 18:09:53 2010
@@ -45,7 +45,7 @@ public class CleanFailureTest extends Cl
public String getODEConfigDir() {
return JPA_DERBY_CONF_DIR;
}
-
+
protected ProcessInstanceDAO getInstance() {
return JpaDaoConnectionFactoryImpl.getInstance();
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFaultHibTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFaultHibTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFaultHibTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFaultHibTest.java Thu May 27 18:09:53 2010
@@ -24,9 +24,9 @@ import org.apache.ode.bpel.dao.ProcessIn
public class CleanFaultHibTest extends CleanFaultTest {
@Override
public String getODEConfigDir() {
- return HIB_DERBY_CONF_DIR;
+ return HIB_DERBY_CONF_DIR;
}
-
+
@Override
protected ProcessInstanceDAO getInstance() {
return HibDaoConnectionFactoryImpl.getInstance();
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFaultTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFaultTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFaultTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanFaultTest.java Thu May 27 18:09:53 2010
@@ -92,7 +92,7 @@ public class CleanFaultTest extends Clea
}
public String getODEConfigDir() {
- return JPA_DERBY_CONF_DIR;
+ return JPA_DERBY_CONF_DIR;
}
@Override
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanSuccessHibTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanSuccessHibTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanSuccessHibTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanSuccessHibTest.java Thu May 27 18:09:53 2010
@@ -24,7 +24,7 @@ import org.apache.ode.bpel.dao.ProcessIn
public class CleanSuccessHibTest extends CleanSuccessTest {
@Override
public String getODEConfigDir() {
- return HIB_DERBY_CONF_DIR;
+ return HIB_DERBY_CONF_DIR;
}
@Override
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanSuccessTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanSuccessTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanSuccessTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanSuccessTest.java Thu May 27 18:09:53 2010
@@ -76,7 +76,7 @@ public class CleanSuccessTest extends Cl
ProcessDAO process = null;
try {
initialLargeDataCount = getLargeDataCount(0);
-
+
server.sendRequestFile("http://localhost:8888/processes/FirstProcess/FirstProcess/FirstProcess/Client", bundleName, "testRequest.soap");
process = assertInstanceCleanup(instances, activityRecoveries, correlationSets, faults, exchanges, routes, messsages, partnerLinks, scopes, variables, events, largeData);
} finally {
@@ -92,11 +92,11 @@ public class CleanSuccessTest extends Cl
public String getODEConfigDir() {
return JPA_DERBY_CONF_DIR;
}
-
+
protected ProcessInstanceDAO getInstance() {
return JpaDaoConnectionFactoryImpl.getInstance();
}
-
+
@Override
protected int getLargeDataCount(int echoCount) throws Exception {
return echoCount;
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanTestBase.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanTestBase.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanTestBase.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/CleanTestBase.java Thu May 27 18:09:53 2010
@@ -41,19 +41,19 @@ public abstract class CleanTestBase exte
protected ProfilingBpelDAOConnection daoConn;
protected TransactionManager txm;
protected int initialLargeDataCount = 0;
-
+
@AfterMethod
protected void tearDown() throws Exception {
stopTM();
super.tearDown();
}
-
+
protected void initTM() throws Exception {
if( txm != null ) {
try {
txm.commit();
} catch( Exception e ) {
- //ignore
+ //ignore
}
}
EmbeddedGeronimoFactory factory = new EmbeddedGeronimoFactory();
@@ -70,8 +70,8 @@ public abstract class CleanTestBase exte
if( txm != null ) {
try {
txm.commit();
- } catch( Exception e ) {
- //ignore
+ } catch( Exception e ) {
+ //ignore
}
txm = null;
}
@@ -91,7 +91,7 @@ public abstract class CleanTestBase exte
Database db = new Database(odeProps);
String webappPath = getClass().getClassLoader().getResource("webapp").getFile();
db.setWorkRoot(new File(webappPath, "/WEB-INF"));
-
+
return db;
}
@@ -141,9 +141,9 @@ public abstract class CleanTestBase exte
}
protected abstract ProcessInstanceDAO getInstance();
-
+
protected int getLargeDataCount(int echoCount) throws Exception {
return echoCount;
}
-
+
}
\ No newline at end of file
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/HibDaoConnectionFactoryImpl.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/HibDaoConnectionFactoryImpl.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/HibDaoConnectionFactoryImpl.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/HibDaoConnectionFactoryImpl.java Thu May 27 18:09:53 2010
@@ -49,7 +49,7 @@ public class HibDaoConnectionFactoryImpl
private static SessionManager _staticSessionManager;
private static ProcessInstanceDaoImpl instance;
private static ProcessDaoImpl process;
-
+
@Override
protected SessionManager createSessionManager(Properties properties, DataSource ds, TransactionManager tm) {
_staticSessionManager = new SessionManager(properties, ds, tm) {
@@ -60,22 +60,22 @@ public class HibDaoConnectionFactoryImpl
return conf;
}
};
-
+
return _staticSessionManager;
}
public BpelDAOConnection getConnection() {
return new ProfilingBpelDAOConnectionImpl(_sessionManager);
}
-
+
public static Session getSession() {
return _staticSessionManager.getSession();
}
-
+
public static ProcessInstanceDAO getInstance() {
return instance;
}
-
+
public static ProcessDaoImpl getProcess() {
return process;
}
@@ -92,7 +92,7 @@ public class HibDaoConnectionFactoryImpl
ProfilingBpelDAOConnectionImpl(SessionManager sm) {
super(sm);
}
-
+
public ProcessProfileDAO createProcessProfile(ProcessDAO process) {
return new ProcessProfileDaoImpl(_sm, (ProcessDaoImpl)process);
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/JpaDaoConnectionFactoryImpl.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/JpaDaoConnectionFactoryImpl.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/JpaDaoConnectionFactoryImpl.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/JpaDaoConnectionFactoryImpl.java Thu May 27 18:09:53 2010
@@ -40,7 +40,7 @@ import org.apache.openjpa.persistence.Op
public class JpaDaoConnectionFactoryImpl extends BPELDAOConnectionFactoryImpl implements PersistListener {
private static ProcessInstanceDAO instance;
private static ProcessDAO process;
-
+
public static ProcessInstanceDAO getInstance() {
return instance;
}
@@ -56,7 +56,7 @@ public class JpaDaoConnectionFactoryImpl
((OpenJPAEntityManagerFactorySPI)_emf).addLifecycleListener(this, ProcessInstanceDAOImpl.class, ProcessDAOImpl.class);
}
}
-
+
@Override
protected BPELDAOConnectionImpl createBPELDAOConnection(EntityManager em) {
return new ProfilingBPELDAOConnectionImpl(em);
@@ -72,12 +72,12 @@ public class JpaDaoConnectionFactoryImpl
public void beforePersist(LifecycleEvent event) {
}
-
+
public static class ProfilingBPELDAOConnectionImpl extends BPELDAOConnectionImpl implements ProfilingBpelDAOConnection {
public ProfilingBPELDAOConnectionImpl(EntityManager em) {
super(em);
}
-
+
public ProcessProfileDAO createProcessProfile(ProcessDAO process) {
return new ProcessProfileDAOImpl(_em, (ProcessDAOImpl)process);
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ProcessCronCleanupTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ProcessCronCleanupTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ProcessCronCleanupTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ProcessCronCleanupTest.java Thu May 27 18:09:53 2010
@@ -34,7 +34,7 @@ public class ProcessCronCleanupTest exte
ProcessDAO process = null;
try {
initialLargeDataCount = getLargeDataCount(0);
-
+
server.sendRequestFile("http://localhost:8888/processes/FirstProcess/FirstProcess/FirstProcess/Client", bundleName, "testRequest.soap");
// every second, clean up cron job kicks in
Thread.sleep(2000);
@@ -48,7 +48,7 @@ public class ProcessCronCleanupTest exte
public String getODEConfigDir() {
return HIB_DERBY_CONF_DIR;
}
-
+
protected ProcessInstanceDAO getInstance() {
return HibDaoConnectionFactoryImpl.getInstance();
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ProfilingBpelDAOConnection.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ProfilingBpelDAOConnection.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ProfilingBpelDAOConnection.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ProfilingBpelDAOConnection.java Thu May 27 18:09:53 2010
@@ -27,6 +27,6 @@ import org.apache.ode.bpel.dao.ProcessPr
public interface ProfilingBpelDAOConnection extends BpelDAOConnection {
ProcessProfileDAO createProcessProfile(ProcessDAO instance);
-
+
ProcessInstanceProfileDAO createProcessInstanceProfile(ProcessInstanceDAO instance);
}
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/SystemCronCleanupTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/SystemCronCleanupTest.java?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/SystemCronCleanupTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/SystemCronCleanupTest.java Thu May 27 18:09:53 2010
@@ -48,19 +48,19 @@ public class SystemCronCleanupTest exten
String customSchedulesFilePath = SystemCronCleanupTest.class.getClassLoader().getResource("webapp").getFile() + "/WEB-INF/test-schedules.xml";
System.setProperty(SystemSchedulesConfig.SCHEDULE_CONFIG_FILE_PROP_KEY, customSchedulesFilePath);
}
-
+
@AfterClass
public void resetCustomCronSchedules() {
System.getProperties().remove(SystemSchedulesConfig.SCHEDULE_CONFIG_FILE_PROP_KEY);
}
-
+
protected void go(String bundleName, int instances, int activityRecoveries, int correlationSets, int faults, int exchanges, int routes, int messsages, int partnerLinks, int scopes, int variables, int events, int largeData) throws Exception {
if (server.isDeployed(bundleName)) server.undeployProcess(bundleName);
server.deployProcess(bundleName);
ProcessDAO process = null;
try {
initialLargeDataCount = getLargeDataCount(0);
-
+
server.sendRequestFile("http://localhost:8888/processes/FirstProcess/FirstProcess/FirstProcess/Client", bundleName, "testRequest.soap");
// every second, clean up cron job kicks in
Thread.sleep(2000);
@@ -75,7 +75,7 @@ public class SystemCronCleanupTest exten
public String getODEConfigDir() {
return HIB_DERBY_CONF_DIR;
}
-
+
protected ProcessInstanceDAO getInstance() {
return HibDaoConnectionFactoryImpl.getInstance();
}