forked from eficode/ClearCaseUCMPlugin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/test/java/net/praqma/hudson/test/integration/userstories/JENKINS16072.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package net.praqma.hudson.test.integration.userstories; | ||
|
||
import java.io.File; | ||
import java.io.FileOutputStream; | ||
import java.io.ObjectInputStream; | ||
import java.io.ObjectOutputStream; | ||
import net.praqma.clearcase.ucm.utils.BaselineList; | ||
import net.praqma.clearcase.ucm.utils.filters.NoDeliver; | ||
import net.praqma.hudson.test.BaseTestClass; | ||
import org.junit.Test; | ||
|
||
/** | ||
* | ||
* @author Praqma | ||
*/ | ||
public class JENKINS16072 extends BaseTestClass { | ||
|
||
@Test | ||
public void jenkins_16072() throws Exception { | ||
File testFile = File.createTempFile("objectSerialization", ".test"); | ||
BaselineList list = new BaselineList().addFilter(new NoDeliver()); | ||
ObjectOutputStream ous = new ObjectOutputStream(new FileOutputStream(testFile)); | ||
ous.writeObject(list); | ||
ous.close(); | ||
testFile.deleteOnExit(); | ||
} | ||
} |