public class TestLibrarySet
extends junit.framework.TestCase
Constructor and Description |
---|
TestLibrarySet(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
testBadLibname()
This test specifies a library pattern that should
not match any available libraries and expects that
a build exception will be raised.
|
void |
testIsActive1()
Evaluate isActive when "if" specifies a property that is set.
|
void |
testIsActive2()
Evaluate isActive when "if" specifies a property whose value suggests the
user thinks the value is significant.
|
void |
testIsActive3()
Evaluate isActive when "if" specifies a property that is not set.
|
void |
testIsActive4()
Evaluate isActive when "unless" specifies a property that is set.
|
void |
testIsActive5()
Evaluate isActive when "unless" specifies a property whose value suggests
the user thinks the value is significant.
|
void |
testIsActive6()
Evaluate isActive when "unless" specifies a property that is not set.
|
void |
testLibContainsDot()
The libs parameter should not end with .lib, .so, .a etc New behavior is
to warn if it ends in a suspicious extension.
|
void |
testLibContainsDotLib()
The libs parameter should not end with .lib, .so, .a (that is,
should be kernel, not kernel.lib).
|
void |
testLibNotSpecified()
Use of a libset or syslibset without a libs attribute should log a
warning message.
|
void |
testLibrarianVisitFiles()
Run testVisitFiles with the MSVC Librarian
expect one matching file.
|
void |
testLinkerVisitFiles()
Run testVisitFiles with the MSVC Linker
expect one matching file.
|
void |
testShortLibName()
this threw an exception prior to 2002-09-05 and started to throw one
again 2002-11-19 up to 2002-12-11.
|
void |
testStartsWithLib()
The libs parameter should contain not a lib prefix (that is,
pthread not libpthread).
|
void |
testVisitFiles(com.github.maven_nar.cpptasks.compiler.Linker linker,
int expected)
This test creates two "fake" libraries in the temporary directory and
check how many are visited.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public TestLibrarySet(String name)
name
- test namepublic final void testBadLibname()
public final void testIsActive1()
public final void testIsActive2()
public final void testIsActive3()
public final void testIsActive4()
public final void testIsActive5()
public final void testIsActive6()
public final void testLibContainsDot()
public final void testLibContainsDotLib()
public final void testLibNotSpecified()
public final void testLibrarianVisitFiles() throws IOException
IOException
- if unable to create or delete temporary filepublic final void testLinkerVisitFiles() throws IOException
IOException
- if unable to create or delete temporary filepublic final void testShortLibName()
public final void testStartsWithLib()
public final void testVisitFiles(com.github.maven_nar.cpptasks.compiler.Linker linker, int expected) throws IOException
linker
- linkerexpected
- expected number of visited filesIOException
- if unable to write to temporary directory or delete temporary
filesCopyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.