File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/rust Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change 11package uk .co .real_logic .sbe .generation .rust ;
22
3- import org .junit .Assume ;
4- import org .junit .Ignore ;
53import org .junit .Rule ;
64import org .junit .Test ;
75import org .junit .rules .TemporaryFolder ;
86
97import java .io .File ;
10- import java .io .IOException ;
118import java .io .Writer ;
129import java .nio .charset .StandardCharsets ;
1310import java .nio .file .FileSystems ;
@@ -63,36 +60,6 @@ public void nullPackageParamThrowsNpe()
6360 new RustFlatFileOutputManager (folderRule .getRoot ().getAbsolutePath (), null );
6461 }
6562
66- @ Ignore
67- @ Test (expected = IllegalStateException .class )
68- public void shouldThrowExceptionIfTargetDirNotWritable () throws IOException , InterruptedException
69- {
70- final File tempDir = folderRule .newFolder ();
71- Assume .assumeTrue (tempDir .setReadOnly ());
72- final String tempDirName = tempDir .getAbsolutePath ();
73-
74- try
75- {
76- new RustFlatFileOutputManager (tempDirName , PACKAGE_NAME );
77- }
78- catch (final IllegalStateException ex )
79- {
80- int waitCount = 0 ;
81- boolean writable ;
82- do
83- {
84- writable = tempDir .setWritable (true );
85- Thread .sleep (100 );
86- waitCount += 1 ;
87- }
88- while (!writable && waitCount < 10 );
89-
90- throw ex ;
91- }
92-
93- fail ("should be unreachable" );
94- }
95-
9663 private static String getExpectedFullFileName (final String tempDirName )
9764 {
9865 return (tempDirName .endsWith ("" + File .separatorChar ) ? tempDirName : tempDirName + File .separatorChar ) +
You can’t perform that action at this time.
0 commit comments