Skip to content
Permalink
Browse files

fix for jenkins-bug #JENKINS-17058

overriding method readResolve() from base-class BPHostConfiguration for
resoving Reflection-problems with XStream
  • Loading branch information
afischer211 committed Apr 15, 2013
1 parent 2aac97e commit 962aace22881b26507a091e7397b79a77aaa4927
@@ -24,11 +24,11 @@

package jenkins.plugins.publish_over;

import org.junit.Test;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public class BPHostConfigurationTest {

@@ -75,6 +75,11 @@ public BPClient createClient(final BPBuildInfo buildInfo) {
return null;
}

@Override
public Object readResolve() {
return super.readResolve();
}

}

}
@@ -24,12 +24,11 @@

package jenkins.plugins.publish_over.helper;

import static org.mockito.Mockito.mock;
import jenkins.plugins.publish_over.BPBuildInfo;
import jenkins.plugins.publish_over.BPClient;
import jenkins.plugins.publish_over.BPHostConfiguration;

import static org.mockito.Mockito.mock;

public class BPHostConfigurationFactory {

public BPHostConfiguration create(final String configName) {
@@ -63,6 +62,11 @@ public ConcreteBPHostConfiguration(final CLIENT client) {
public CLIENT createClient(final BPBuildInfo buildInfo) {
return client;
}

@Override
public Object readResolve() {
return super.readResolve();
}
}

}

0 comments on commit 962aace

Please sign in to comment.