Search in sources :

Example 1 with StringOutputStream

use of com.thoughtworks.studios.shine.io.StringOutputStream in project gocd by gocd.

the class KillAllChildProcessTaskBuilderTest method builderReturnedByThisTaskBuilderShouldBeSerializable.

@Test
public void builderReturnedByThisTaskBuilderShouldBeSerializable() throws Exception {
    KillAllChildProcessTaskBuilder killAllChildProcessTaskBuilder = new KillAllChildProcessTaskBuilder();
    Builder builder = killAllChildProcessTaskBuilder.createBuilder(null, null, null, null);
    new ObjectOutputStream(new StringOutputStream()).writeObject(builder);
}
Also used : StringOutputStream(com.thoughtworks.studios.shine.io.StringOutputStream) Builder(com.thoughtworks.go.domain.builder.Builder) ObjectOutputStream(java.io.ObjectOutputStream) Test(org.junit.Test)

Aggregations

Builder (com.thoughtworks.go.domain.builder.Builder)1 StringOutputStream (com.thoughtworks.studios.shine.io.StringOutputStream)1 ObjectOutputStream (java.io.ObjectOutputStream)1 Test (org.junit.Test)1