HHH-4999 implement new added method in the ExecutionEnvironment.Settings

This commit is contained in:
Strong Liu 2011-03-23 01:52:12 +08:00
parent 7ffe291739
commit e521d91dbb
2 changed files with 14 additions and 6 deletions

View File

@ -135,7 +135,7 @@ protected Class getTransactionFactoryClass() {
/**
* Apply any node-specific configurations to our first node.
*
* @param the
* @param cfg
* Configuration to update.
*/
protected void configureFirstNode(Configuration cfg) {
@ -145,7 +145,7 @@ protected void configureFirstNode(Configuration cfg) {
/**
* Apply any node-specific configurations to our second node.
*
* @param the
* @param cfg
* Configuration to update.
*/
protected void configureSecondNode(Configuration cfg) {
@ -186,7 +186,12 @@ public SecondNodeSettings() {
this.delegate = DualNodeTestCase.this;
}
/**
@Override
public Class[] getAnnotatedClasses() {
return this.delegate.getAnnotatedClasses();
}
/**
* This is the important one -- we extend the delegate's work by adding second-node specific
* settings
*/

View File

@ -68,7 +68,7 @@ private void standardConfigure(Configuration cfg) {
/**
* Apply any node-specific configurations to our first node.
*
* @param the Configuration to update.
* @param cfg Configuration to update.
*/
protected void configureFirstNode(Configuration cfg)
{
@ -78,7 +78,7 @@ protected void configureFirstNode(Configuration cfg)
/**
* Apply any node-specific configurations to our second node.
*
* @param the Configuration to update.
* @param cfg Configuration to update.
*/
protected void configureSecondNode(Configuration cfg)
{
@ -166,7 +166,10 @@ public ExecutionEnvironment getSecondNodeEnvironment() {
public class SecondNodeSettings implements ExecutionEnvironment.Settings {
private DualNodeTestCaseBase delegate;
public Class[] getAnnotatedClasses() {
return this.delegate.getAnnotatedClasses();
}
public SecondNodeSettings() {
this.delegate = DualNodeTestCaseBase.this;
}