public class FileUtilTest extends Object
Modifier and Type | Field and Description |
---|---|
protected File |
parent |
org.junit.rules.TestName |
testName |
static long |
TIMESTAMP |
Constructor and Description |
---|
FileUtilTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
testBasename() |
void |
testChangeExtension() |
void |
testCopyRecursively() |
void |
testExtension() |
void |
testFind() |
void |
testGetFileFromFQN() |
void |
testGetFileFromPaths() |
void |
testGetRelativeFile() |
void |
testGrepMultiple()
Test grep on a multiple files.
|
void |
testGrepSingleFile()
Test grep on a single file.
|
void |
testSedComment()
Test that sed result which produce shorter file work as well.
|
void |
testSedMultiple()
Test sed on a multiple files.
|
void |
testSedSingleFile()
Test sed method on a single file.
|
public static final long TIMESTAMP
public final org.junit.rules.TestName testName
protected File parent
public void setUp()
public void testGrepSingleFile() throws IOException
Search for grep() method count.
IOException
- ?public void testGrepMultiple() throws IOException
Try to find all java file containing "CodeLutin". Can fail if some src files are deleted.
IOException
- ?public void testSedSingleFile() throws IOException
IOException
- ?public void testSedMultiple() throws IOException
Try to replace all "CodeLutin" by "nuiton" in all files. Can fail if some src files are deleted.
IOException
- ?public void testSedComment() throws IOException
IOException
- ?public void testChangeExtension() throws IOException
IOException
public void testGetRelativeFile()
public void testGetFileFromPaths()
public void testGetFileFromFQN()
Copyright © 2004–2020 CodeLutin. All rights reserved.