net.sf.gridarta.model.resource
public class AbstractFilesResourcesReaderTest extends Object
AbstractFilesResourcesReader
.Modifier and Type | Field and Description |
---|---|
private static Pattern |
PATTERN_DEFAULT_KEY
The
Pattern for matching validator keys for default values. |
Constructor and Description |
---|
AbstractFilesResourcesReaderTest() |
Modifier and Type | Method and Description |
---|---|
private static void |
createAnimationFile(File directory,
String animName)
Creates a new .anim file.
|
private static void |
delete(File file)
Recursively deletes a directory.
|
private static AnimationObjects |
readAnimations(File archDirectory,
File collectedDirectory)
Reads resources from individual files.
|
void |
testAnimationPaths()
checks that animations read from .anim files have correct path names.
|
@NotNull private static final Pattern PATTERN_DEFAULT_KEY
Pattern
for matching validator keys for default values.public AbstractFilesResourcesReaderTest()
public void testAnimationPaths() throws IOException
IOException
- if the test fails@NotNull private static AnimationObjects readAnimations(@NotNull File archDirectory, @NotNull File collectedDirectory)
archDirectory
- the arch directorycollectedDirectory
- the collected directoryprivate static void createAnimationFile(@NotNull File directory, @NotNull String animName) throws IOException
directory
- the directory to create the file in; will be created if
it does not yet existanimName
- the name of the animationIOException
- if an I/O error occursFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.