Gridarta Editor
net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest Class Reference

Regression tests for AbstractFilesResourcesReader. More...

+ Collaboration diagram for net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest:

Public Member Functions

void testAnimationPaths () throws IOException
 checks that animations read from .anim files have correct path names. More...
 

Static Private Member Functions

static void createAnimationFile (@NotNull final File directory, @NotNull final String animName) throws IOException
 Creates a new .anim file. More...
 
static void delete (@NotNull final File file)
 Recursively deletes a directory. More...
 
static AnimationObjects readAnimations (@NotNull final File archDirectory, @NotNull final File collectedDirectory)
 Reads resources from individual files. More...
 

Static Private Attributes

static final Pattern PATTERN_DEFAULT_KEY = Pattern.compile("fileDialog\\.filter\\..*")
 The Pattern for matching validator keys for default values. More...
 

Detailed Description

Regression tests for AbstractFilesResourcesReader.

Author
Andreas Kirschbaum

Definition at line 73 of file AbstractFilesResourcesReaderTest.java.

Member Function Documentation

◆ createAnimationFile()

static void net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest.createAnimationFile ( @NotNull final File  directory,
@NotNull final String  animName 
) throws IOException
staticprivate

Creates a new .anim file.

Parameters
directorythe directory to create the file in; will be created if it does not yet exist
animNamethe name of the animation
Exceptions
IOExceptionif an I/O error occurs

Definition at line 188 of file AbstractFilesResourcesReaderTest.java.

Referenced by net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest.testAnimationPaths().

+ Here is the caller graph for this function:

◆ delete()

static void net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest.delete ( @NotNull final File  file)
staticprivate

Recursively deletes a directory.

Parameters
filethe file or directory to delete

Definition at line 211 of file AbstractFilesResourcesReaderTest.java.

◆ readAnimations()

static AnimationObjects net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest.readAnimations ( @NotNull final File  archDirectory,
@NotNull final File  collectedDirectory 
)
staticprivate

Reads resources from individual files.

Parameters
archDirectorythe arch directory
collectedDirectorythe collected directory
Returns
the animation objects instance

Definition at line 163 of file AbstractFilesResourcesReaderTest.java.

References net.sf.gridarta.model.resource.AbstractResourcesReader< G extends GameObject< G, ?, ?>.read().

Referenced by net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest.testAnimationPaths().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testAnimationPaths()

void net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest.testAnimationPaths ( ) throws IOException

Member Data Documentation

◆ PATTERN_DEFAULT_KEY

final Pattern net.sf.gridarta.model.resource.AbstractFilesResourcesReaderTest.PATTERN_DEFAULT_KEY = Pattern.compile("fileDialog\\.filter\\..*")
staticprivate

The Pattern for matching validator keys for default values.

Definition at line 79 of file AbstractFilesResourcesReaderTest.java.


The documentation for this class was generated from the following file: