@@ -140,10 +140,10 @@ public void testUseAttributesFromTarArchiveInputInTarArchiverOutput()
140
140
PlexusIoResourceAttributes fileAttributes =
141
141
PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
142
142
143
- final String expected = Java7Reflector .isAtLeastJava7 () ? "660" : "644" ;
143
+ final int expected = Java7Reflector .isAtLeastJava7 () ? 0660 : 0644 ;
144
144
145
145
assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
146
- expected , fileAttributes .getOctalModeString () );
146
+ expected , fileAttributes .getOctalMode () );
147
147
}
148
148
149
149
public void testUseDetectedFileAttributes ()
@@ -203,10 +203,10 @@ public void testUseDetectedFileAttributes()
203
203
204
204
fileAttributes = PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
205
205
206
- final String expected = Java7Reflector .isAtLeastJava7 () ? "440" : "444" ;
206
+ final int expected = Java7Reflector .isAtLeastJava7 () ? 0440 : 0444 ;
207
207
208
208
assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
209
- expected , fileAttributes .getOctalModeString () );
209
+ expected , fileAttributes .getOctalMode () );
210
210
}
211
211
212
212
private boolean checkForWindows ()
@@ -268,10 +268,10 @@ public void testOverrideDetectedFileAttributes()
268
268
PlexusIoResourceAttributes fileAttributes =
269
269
PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
270
270
271
- final String expected = Java7Reflector .isAtLeastJava7 () ? "660" : "644" ;
271
+ final int expected = Java7Reflector .isAtLeastJava7 () ? 0660 : 0644 ;
272
272
273
273
assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
274
- expected , fileAttributes .getOctalModeString () );
274
+ expected , fileAttributes .getOctalMode () );
275
275
}
276
276
277
277
private TarArchiver getPosixCompliantTarArchiver () throws Exception {
@@ -334,9 +334,9 @@ public void testOverrideDetectedFileAttributesUsingFileMode()
334
334
PlexusIoResourceAttributes fileAttributes =
335
335
PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
336
336
337
- final String expected = Java7Reflector .isAtLeastJava7 () ? "660" : "644" ;
337
+ final int expected = Java7Reflector .isAtLeastJava7 () ? 0660 : 0644 ;
338
338
assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
339
- expected , fileAttributes .getOctalModeString () );
339
+ expected , fileAttributes .getOctalMode () );
340
340
}
341
341
342
342
}
0 commit comments