A B C D E F G H I J L M N O P Q R S T V

A

add(Strings) - Method in class comtest.Strings
Add an other list to the end of this list
add(int) - Method in class example.Counter
Adds i to current counter if not allready too many added.
add(String, String) - Method in class example.TableExample
Add new value with key to the table.
addIfNotAllready(int, String) - Method in class comtest.ComTest.ComTestScanner
Adds the line s+"\n" to outlines if it is not there already.
addImports() - Method in class comtest.ComTest.ComTestScanner
Add imports-list to outlines Also if doStaticImport is true then add also static import
addInit(Strings, int) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Add sentences to init section.
addOut(String) - Method in class comtest.ComTest.ComTestScanner
Add string s to outlines
addOut(Strings) - Method in class comtest.ComTest.ComTestScanner
Add strings from list to outlines by separating from new line
addOut(Strings, String, String) - Method in class comtest.ComTest.ComTestScanner
Prints the stringlist by replacing target-strings by replacement strings Separator is not printed after last line
addOutln(String) - Method in class comtest.ComTest.ComTestScanner
Add string s to outlines with new line
addToName(String, String) - Static method in class comtest.StringUtilities
Adds a new part to filename
ALMOSTMARKER1 - Static variable in class comtest.ComTest
 
ALMOSTMARKER1 - Variable in class comtest.ComTest.ComTestScanner
 
ALMOSTMARKER2 - Static variable in class comtest.ComTest
 
ALMOSTMARKER2 - Variable in class comtest.ComTest.ComTestScanner
 

B

baseIndent - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 

C

checkFileNameOnceAgain(String) - Method in class comtest.ComTest.ComTestScanner
May change outFileName to same directory, if no package
checkIniOptions(String) - Method in class comtest.ComTest.ComTestScanner
Climb up from filename and find first ComTest.ini and read that
checkMethodThrows(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Check if line is THROWS line.
checkOptionLine(String, boolean) - Method in class comtest.ComTest.ComTestScanner
Check the selected line by ComTest options
checkOptions(Strings, boolean) - Method in class comtest.ComTest.ComTestScanner
Check the selected contents by ComTest options
checkSemiColon(Strings, int, Strings) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Check if there is coming a ; then nothing is done.
checkThrows(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Check if line is THROWS line.
checkVariable(String, String) - Method in class comtest.ComTest.ComTestScanner
Check if s is a substitution to specified variable
checkVariables(String) - Method in class comtest.ComTest.ComTestScanner
Check is d is substitution to any know variable
CLASSIMPORT - Static variable in class comtest.ComTest
 
className - Variable in class comtest.ComTest.ComTestScanner
 
clone() - Method in class comtest.Strings
Make a new instance from list with same strings inside
cnt - Variable in class example.test.CounterTest
 
codeHandler - Variable in class comtest.ComTest.TestHelpper
Global test codeHandler
COLUMNCHAR - Static variable in class comtest.ComTest
 
COLUMNCHAR - Variable in class comtest.ComTest.ComTestScanner
 
COLUMNSEPARATOR - Static variable in class comtest.ComTest
 
COLUMNSEPARATOR - Variable in class comtest.ComTest.ComTestScanner
 
comtest - package comtest
 
ComTest - Class in comtest
A class for making testing easy.
ComTest() - Constructor for class comtest.ComTest
 
ComTest.ComTestScanner - Class in comtest
Class to do the file scanning and output for test class
ComTest.ComTestScanner(Strings) - Constructor for class comtest.ComTest.ComTestScanner
Constructs the new ComTestScanner from stringlist contents
ComTest.ComTestScanner.CommentCodeHandler - Class in comtest
Handles to ComTest-comment and returns the position of last handled line.
ComTest.ComTestScanner.CommentCodeHandler() - Constructor for class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
ComTest.TestHelpper - Class in comtest
A class to help testing ComTest-functions.
ComTest.TestHelpper() - Constructor for class comtest.ComTest.TestHelpper
Initializer for TestHelper
COMTESTBEGIN - Static variable in class comtest.ComTest
 
COMTESTEND - Static variable in class comtest.ComTest
 
COMTESTID - Static variable in class comtest.ComTest
 
COMTESTIDOLD - Static variable in class comtest.ComTest
 
COMTESTINI - Static variable in class comtest.ComTest
 
comTestIni - Variable in class comtest.ComTest.ComTestScanner
 
ComTestTest - Class in testcomtest
Test class made by ComTest
ComTestTest() - Constructor for class testcomtest.ComTestTest
 
contents - Variable in class comtest.ComTest.ComTestScanner
 
contents - Variable in class comtest.ComTest.TestHelpper
contents of the files
count - Variable in class example.Counter
 
countEndIndex(String, String) - Static method in class comtest.StringUtilities
Counts the index in ending word when the builded string should contain end-string as last characters.
Counter - Class in example
Simple example class to show how to use ComTest.
Counter(int) - Constructor for class example.Counter
Init counter with max N items
CounterTest - Class in example.test
Test class made by ComTest
CounterTest() - Constructor for class example.test.CounterTest
 
createCommentCodeHandler() - Method in class comtest.ComTest.ComTestScanner
This factory method is just for testing purposes
createHeaderAndFooter(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Creates a header and footer for new ComTest test method.
createTestFileBegin() - Method in class comtest.ComTest.ComTestScanner
Reads possible old file and removes all ComTest generated code and create the output to outlines
createTestFileInner() - Method in class comtest.ComTest.ComTestScanner
Creates the inner part of test class

D

delete(Strings, String, String) - Method in class comtest.ComTest.ComTestScanner
Deletes from the list all lines that contains target outside of quotes and comments
deleteComTestLines(Strings, Strings) - Static method in class comtest.ComTest.ComTestScanner
Scans String list and deletes all lines written by ComTest
deleteLastNewLine(Strings) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Deletes \n from the last line of cmds
DELETESENTENCEMARKER - Variable in class comtest.ComTest.ComTestScanner
 
DELETESENTENCEMARKER - Static variable in class comtest.ComTest
 
directory - Variable in class comtest.ComTest.ComTestScanner
 
DIRECTORYMARKER - Variable in class comtest.ComTest.ComTestScanner
 
DIRECTORYMARKER - Static variable in class comtest.ComTest
 
doAfter() - Method in class example.test.CounterTest
 
doInit() - Method in class example.test.CounterTest
 
doStaticImport - Variable in class comtest.ComTest.ComTestScanner
 
DYNAMICIMPORT - Static variable in class comtest.ComTest
 

E

endOfLine - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
EQUALSMARKER - Variable in class comtest.ComTest.ComTestScanner
 
EQUALSMARKER - Static variable in class comtest.ComTest
 
EQUALSMARKER2 - Variable in class comtest.ComTest.ComTestScanner
 
EQUALSMARKER2 - Static variable in class comtest.ComTest
 
everyLineInits - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
EVERYLINEINITS1 - Variable in class comtest.ComTest.ComTestScanner
 
EVERYLINEINITS1 - Static variable in class comtest.ComTest
 
EVERYLINEINITS2 - Variable in class comtest.ComTest.ComTestScanner
 
EVERYLINEINITS2 - Static variable in class comtest.ComTest
 
example - package example
 
example.test - package example.test
 

F

findNames(String) - Method in class comtest.ComTest.ComTestScanner
Find outName and className from fileName
findPackage(Strings) - Method in class comtest.ComTest.ComTestScanner
Finds the package line from contents.

G

get(String) - Method in class example.TableExample
Finds the value for key.
getAvg() - Method in class example.Counter
 
getComTestVersion() - Static method in class comtest.ComTest.ComTestScanner
Returns version string for class comments
getCount() - Method in class example.Counter
 
getFileContents(String) - Static method in class comtest.StringUtilities
Read the file and return the contents as a ArrayList
getInitCmnds() - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
This is just for testing purposes to return the initCmds
getLineIndent(String, int) - Static method in class comtest.StringUtilities
Returns indent string copied from line.
getMax() - Method in class example.Counter
 
getMin() - Method in class example.Counter
 
getOutlines() - Method in class comtest.ComTest.ComTestScanner
This method is just for testing purposes to return current outlines.
getSum() - Method in class example.Counter
 
globalList - Variable in class testcomtest.ComTestTest
 

H

handleAnnotationInComments(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Annotations in comments must be prefixed with something.
handleDirAndPackage(String) - Method in class comtest.ComTest.ComTestScanner
Handles directory and package specific lines
handleImports(String) - Method in class comtest.ComTest.ComTestScanner
Checks if s is for setting imports.
handleSentences(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Handles normal lines and table lines from ComTest lines.
handleTableLine(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Handles lines like " $s | $what | $result" or " "aab" | "a" | "ab" " If there is a $ on the line, it is kept as a header line.

I

IMPORTMARKER - Variable in class comtest.ComTest.ComTestScanner
 
IMPORTMARKER - Static variable in class comtest.ComTest
 
imports - Variable in class comtest.ComTest.ComTestScanner
 
imports - Variable in class comtest.ComTest.TestHelpper
Import lines
indent - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
indexOfBack(String, String, int) - Static method in class comtest.StringUtilities
Searches what backwards from pos and returns position found
indexOfNotInQuotes(String, String, String, int) - Static method in class comtest.StringUtilities
Find first instance of what that is not inside of quotes
indexOfNotInQuotes(String, String) - Static method in class comtest.StringUtilities
Find first instance of what that is not inside of quotes
indexOfNotInQuotes(String, String, String) - Static method in class comtest.StringUtilities
Find first instance of what that is not inside of quotes
init() - Method in class testcomtest.ComTestTest
 
initCmds - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
initCmnds - Variable in class comtest.ComTest.TestHelpper
Global list for test initCmnds
initLine - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
INITLINE - Variable in class comtest.ComTest.ComTestScanner
 
INITLINE - Static variable in class comtest.ComTest
 
isEmpty(String) - Static method in class comtest.StringUtilities
Check if string is empty
isPseudoComment(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Check if line is pseudo comment /.* or *
isTableLine(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Check if the line is a table line, so containing either " | " or | at the beginning or end.
items - Variable in class example.TableExample
 

J

JAVAIMPOPRT - Static variable in class comtest.ComTest.ComTestScanner
 
javaShortComment - Static variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
jUnitAnnotate(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Check if s is one of the JUnit annotation.
justFilePart(String) - Static method in class comtest.StringUtilities
Returns just the file part from fileName.

L

lineNr - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
LINENUMBERMARKER - Static variable in class comtest.ComTest
 

M

main(String[]) - Static method in class comtest.ComTest
 
main(String[]) - Static method in class example.TableExample
 
max - Variable in class example.Counter
 
maxN - Variable in class example.Counter
 
methodFooter - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
methodHeader - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
methodHeaderPrinted - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
methodIndex - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
METHODINDEXMARKER - Static variable in class comtest.ComTest
 
methodName - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
methodThrows - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
min - Variable in class example.Counter
 

N

noAutoImport - Variable in class comtest.ComTest.ComTestScanner
 
NOIMPORT - Static variable in class comtest.ComTest
 

O

oneTablePrinted - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
originalPackageName - Variable in class comtest.ComTest.ComTestScanner
 
outDirName - Variable in class comtest.ComTest.ComTestScanner
 
outFileName - Variable in class comtest.ComTest.ComTestScanner
 
outFooter(int) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Copies method footer to outlines if method header is already moved.
outLines(Strings, int) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Moves commands to outlines.
outlines - Variable in class comtest.ComTest.ComTestScanner
 
outLines - Variable in class comtest.ComTest.TestHelpper
Global list for test outLines
outNewHeader() - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Moves header lines to outlines.
outWithHeader(Strings, String, String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Moves list to outlines.

P

PACKAGEIMPORT - Static variable in class comtest.ComTest
 
PACKAGEMARKER - Variable in class comtest.ComTest.ComTestScanner
 
PACKAGEMARKER - Static variable in class comtest.ComTest
 
packageName - Variable in class comtest.ComTest.ComTestScanner
 
printedTableLines - Variable in class comtest.ComTest.ComTestScanner
 
println(PrintWriter, Strings, String) - Method in class comtest.ComTest.ComTestScanner
Prints the stringlist by replacing target-strings by replacement strings
processFile(String) - Static method in class comtest.ComTest
Process the file and make a unit test

Q

QUOTES - Static variable in class comtest.StringUtilities
Chars that are handled as quote chars

R

rawMode - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
readCode(int) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Reads the code from contents starting from line start and returns the line last handled.
REGEXPMARKER1 - Variable in class comtest.ComTest.ComTestScanner
 
REGEXPMARKER1 - Static variable in class comtest.ComTest
 
REGEXPMARKER2 - Variable in class comtest.ComTest.ComTestScanner
 
REGEXPMARKER2 - Static variable in class comtest.ComTest
 
remove(String, String) - Static method in class comtest.StringUtilities
Removes from s the first instance of what
removeAllAfter(String, String) - Static method in class comtest.StringUtilities
Returns a string where all after afterWhat string is removed Also the afterWhat is removed.
removeFromBegining(String, String, int) - Static method in class comtest.StringUtilities
Removes n instances of what from the beginning of s
removeFromBegining(String, String) - Static method in class comtest.StringUtilities
Removes all instances of what from the beginning of s
removeFromBeginingTrim(String, String) - Static method in class comtest.StringUtilities
Removes all instances of what from the beginning of s If there is only spaces before s, then remove them also.
removeRange(int, int) - Method in class comtest.Strings
Remove a part from list
replace(String, String) - Method in class comtest.Strings
Replace from every line target by replacement.

S

saveStartAndEndOfLine(String) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Find comments and put possible try catch to start and end of the the current line's start and end lists.
scan(String) - Method in class comtest.ComTest.ComTestScanner
Scan the contents and make a test class
scanner - Variable in class comtest.ComTest.TestHelpper
Global test scanner
SEPARATORLINE - Static variable in class comtest.ComTest
 
serialVersionUID - Static variable in class comtest.Strings
 
sMethodIndex - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
splitBy(String, String, int, boolean) - Static method in class comtest.StringUtilities
Splits s to pieces from where.
splitBy(String, String, int) - Static method in class comtest.StringUtilities
Splits s to pieces from where.
splitBy(String, String) - Static method in class comtest.StringUtilities
Splits s to pieces from where.
splitToSentences(String) - Static method in class comtest.ComTest
Split line to smaller tokens.
startOfLine - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
STARTOFTEST - Static variable in class comtest.ComTest
 
STATICIMPORT - Static variable in class comtest.ComTest
 
Strings - Class in comtest
Class for handling String lists
Strings() - Constructor for class comtest.Strings
 
StringsTest - Class in testcomtest
Test class made by ComTest
StringsTest() - Constructor for class testcomtest.StringsTest
 
StringUtilities - Class in comtest
A collection of static string handling functions to make the string handling in ComTest more easy.
StringUtilities() - Constructor for class comtest.StringUtilities
 
StringUtilitiesTest - Class in testcomtest
Test class made by ComTest
StringUtilitiesTest() - Constructor for class testcomtest.StringUtilitiesTest
 
sum - Variable in class example.Counter
 

T

TableExample - Class in example
A class for showing how to test table-like objects.
TableExample() - Constructor for class example.TableExample
 
TableExampleTest - Class in example.test
Test class made by ComTest
TableExampleTest() - Constructor for class example.test.TableExampleTest
 
tablePrinted - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
template - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
template - Variable in class comtest.ComTest.TestHelpper
 
TEMPLATELINEMARKER - Variable in class comtest.ComTest.ComTestScanner
 
TEMPLATELINEMARKER - Static variable in class comtest.ComTest
 
TEST - Static variable in class comtest.ComTest
 
testAdd() - Method in class testcomtest.StringsTest
testAdd
testAdd24() - Method in class example.test.TableExampleTest
testAdd24
testAddToName() - Method in class testcomtest.StringUtilitiesTest
testAddToName
testCheckOptionLine1547() - Method in class testcomtest.ComTestTest
testCheckOptionLine1547
testClassName - Variable in class comtest.ComTest.ComTestScanner
 
testClone() - Method in class testcomtest.StringsTest
testClone
testcomtest - package testcomtest
 
testCountEndIndex396() - Method in class testcomtest.StringUtilitiesTest
testCountEndIndex396
testCounterAdd() - Method in class example.test.CounterTest
testCounterAdd
testCounterAddTable() - Method in class example.test.CounterTest
testCounterAddTable
testCounterAddTable2() - Method in class example.test.CounterTest
testCounterAddTable2
testCounterAddTable3() - Method in class example.test.CounterTest
testCounterAddTable3
testDouble() - Method in class testcomtest.ComTestTest
testDouble
testFilePackageName - Variable in class comtest.ComTest.ComTestScanner
 
testGet48() - Method in class example.test.TableExampleTest
testGet48
testGetFileContents() - Method in class testcomtest.StringUtilitiesTest
testGetFileContents
testGetLineIndent477() - Method in class testcomtest.StringUtilitiesTest
testGetLineIndent477
testGlobalList() - Method in class testcomtest.ComTestTest
testGlobalList
testGlobalList2() - Method in class testcomtest.ComTestTest
testGlobalList2
testHandleAnnotationInComments994() - Method in class testcomtest.ComTestTest
testHandleAnnotationInComments994
testHandleSentences1125() - Method in class testcomtest.ComTestTest
testHandleSentences1125
testHandleSentences1164() - Method in class testcomtest.ComTestTest
testHandleSentences1164
testHandleSentences1174() - Method in class testcomtest.ComTestTest
testHandleSentences1174
testHandleSentences1180() - Method in class testcomtest.ComTestTest
testHandleSentences1180
testIndexOfBack440() - Method in class testcomtest.StringUtilitiesTest
testIndexOfBack440
testIndexOfNotInQuotes() - Method in class testcomtest.StringUtilitiesTest
testIndexOfNotInQuotes
testIsEmpty496() - Method in class testcomtest.StringUtilitiesTest
testIsEmpty496
testIsTableLine1028() - Method in class testcomtest.ComTestTest
testIsTableLine1028
testJustFilePart() - Method in class testcomtest.StringUtilitiesTest
testJustFilePart
testRegExp() - Method in class testcomtest.ComTestTest
testRegExp
testRemove324() - Method in class testcomtest.StringUtilitiesTest
testRemove324
testRemove335() - Method in class testcomtest.StringUtilitiesTest
testRemove335
testRemoveAllAfter() - Method in class testcomtest.StringUtilitiesTest
testRemoveAllAfter
testRemoveFromBegining() - Method in class testcomtest.StringUtilitiesTest
testRemoveFromBegining
testRemoveFromBeginingN() - Method in class testcomtest.StringUtilitiesTest
testRemoveFromBeginingN
testRemoveFromBeginingTrim() - Method in class testcomtest.StringUtilitiesTest
testRemoveFromBeginingTrim
testReplace() - Method in class testcomtest.StringsTest
testReplace
testSplitBy() - Method in class testcomtest.StringUtilitiesTest
testSplitBy
testSplitBy86() - Method in class testcomtest.StringUtilitiesTest
testSplitBy86
testSplitToSentences417() - Method in class testcomtest.ComTestTest
testSplitToSentences417
testStringAdd() - Method in class testcomtest.ComTestTest
testStringAdd
testStringAdd2() - Method in class testcomtest.ComTestTest
testStringAdd2
testStringAdd3() - Method in class testcomtest.ComTestTest
testStringAdd3
testStringAdd4() - Method in class testcomtest.ComTestTest
testStringAdd4
testStringAdd5() - Method in class testcomtest.ComTestTest
testStringAdd5
testStrings() - Method in class testcomtest.StringsTest
testStrings
testToString116() - Method in class testcomtest.StringsTest
testToString116
testToString144() - Method in class testcomtest.StringsTest
testToString144
THROWSMARKER - Variable in class comtest.ComTest.ComTestScanner
 
THROWSMARKER - Static variable in class comtest.ComTest
 
TOLERANCE - Variable in class comtest.ComTest.ComTestScanner
 
TOLERANCE - Static variable in class comtest.ComTest
 
toString(String, String) - Method in class comtest.Strings
Returns the list as separated by separator;
toString(String) - Method in class comtest.Strings
Returns the list as separated by separator;
tryToFindMethodName(Strings, int) - Method in class comtest.ComTest.ComTestScanner.CommentCodeHandler
Try to find name for next method.
two(int) - Static method in class comtest.ComTest.ComTestScanner
Returns integer i by at least two characters

V

values - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 
vars - Variable in class comtest.ComTest.ComTestScanner.CommentCodeHandler
 

A B C D E F G H I J L M N O P Q R S T V