|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.web.databasesupport.tools.test.MakeHTMLLog
Generates a HTML-Log-file
Field Summary | |
static java.util.Vector |
links
|
Constructor Summary | |
MakeHTMLLog()
|
Method Summary | |
static java.lang.String |
bodyHTML(TestedMethod tMethod)
generates a HTML-body using de.gmx.ndewitt.tools.test.TestedMenthod - objects. |
static java.lang.String |
bodyHTML(TestedMethod[] tMethods)
generates a HTML-body using de.gmx.ndewitt.tools.test.TestedMenthod - objects. |
static java.lang.String |
footerHTML()
generates a HTML-footer. |
static java.lang.String |
generateLink(java.lang.String methodName)
generates a links from the method-name |
static java.lang.String |
generateLinkList(java.util.Vector links)
generates a link-list from given HTML-Strings |
static java.lang.String |
getDate(long date)
generates a Date-String (YYYY-MM-DD) from a date given in milliseconds since 1970. |
static java.lang.String |
getTime(long date)
generates a Time-String (HH:MM:SS) from a date given in milliseconds since 1970. |
static java.lang.String |
headerHTML(java.lang.String title)
generates a standard HTML-header |
static java.lang.String |
headerHTML(java.lang.String classname,
java.lang.String classDescription,
java.lang.String tester,
java.lang.String date,
java.lang.String time)
generates a HTML-header including classname, tester, date, time and a class-description. |
static java.lang.String |
makeAnchorTarget(java.lang.String methodName)
generates a anchor-point at the method-name |
static boolean |
makeHTML(java.lang.String classDescription,
TestedMethod[] tMethods,
java.io.File dest,
boolean overwrite)
generates a complete HTML-file and checks if file exists already. |
static java.lang.String |
makeToTop()
generates a link to the top (target is #linklist). |
static java.util.Vector |
showResult(java.sql.ResultSet resultset)
generates from a ResultSet a Vector of Strings including a header, columnname and content. |
static java.util.Vector |
showStringArray(java.lang.String[] array)
generates from a String-array a Vector of Strings including a header, columnname and content. |
static java.util.Vector |
showStringVector(java.util.Vector vec)
Adds to a Vector a information header at the front. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static java.util.Vector links
Constructor Detail |
public MakeHTMLLog()
Method Detail |
public static boolean makeHTML(java.lang.String classDescription, TestedMethod[] tMethods, java.io.File dest, boolean overwrite) throws java.io.IOException
classDescription
- The description of the used class.tMethods
- All tested methods with there results.dest
- Destination-file where to put the information from tMethods in.overwrite
- Flag if overwriting an existing file is allowed (true is allowed, false otherwise).java.io.IOException
- - if something went wrong with the writing, or creating of the destination-file.public static java.lang.String getDate(long date)
date
- The milliseconds since 1970.public static java.lang.String getTime(long date)
date
- The milliseconds since 1970.public static java.lang.String headerHTML(java.lang.String classname, java.lang.String classDescription, java.lang.String tester, java.lang.String date, java.lang.String time)
classname
- The name of the tested class.classDescription
- The Description about the tested class.tester
- The name of the tester.date
- The date of the test.time
- The beginning of the test.public static java.lang.String headerHTML(java.lang.String title)
title
- The title of the HTML-document.public static java.lang.String footerHTML()
public static java.lang.String bodyHTML(TestedMethod[] tMethods)
tMethods
- The TestedMethod-Objects to get information about the test.public static java.lang.String bodyHTML(TestedMethod tMethod)
tMethod
- The TestedMethod-Object to get information about the test.public static java.lang.String generateLinkList(java.util.Vector links)
links
- The HTML-Strings, containing the links.public static java.lang.String generateLink(java.lang.String methodName)
methodName
- The name of the method.public static java.lang.String makeAnchorTarget(java.lang.String methodName)
methodName
- The name of the method.public static java.lang.String makeToTop()
public static java.util.Vector showResult(java.sql.ResultSet resultset)
resultset
- The ResultSet to generate a Vector of Strings from.public static java.util.Vector showStringArray(java.lang.String[] array)
array
- The String-array to generate a Vector of Strings from.public static java.util.Vector showStringVector(java.util.Vector vec)
vec
- The Vector of Strings to add a header to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |