BrokenEvent nanotests
A C D E G H I L Q R S T U X

A

assertElementContent(Document, String, String) - Static method in class com.brokenevent.nanotests.XmlAssert
Asserts that the element text content is equal to the given value.
assertElementName(Document, String, String) - Static method in class com.brokenevent.nanotests.XmlAssert
Asserts that the element name is equal to the given value.
assertElementsCount(Document, String, int) - Static method in class com.brokenevent.nanotests.XmlAssert
Asserts that the count of the elements found by given XPath expression if equals to the given value.
assertEquals(Date, Date) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that dates are equal with second precision.
assertEquals(String, Date, Date) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that dates are equal with second precision.
assertHttp404(String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result code is Not Found (404).
assertHttpCode(TestRequest, int) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result code is equal with the expected.
assertHttpCode(String, TestRequest, int) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result code is equal with the expected.
assertHttpCode(String, int) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result code is equal to expected value.
assertHttpContent(TestRequest, String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result content is equal to the expected value.
assertHttpContent(TestRequest, byte[]) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result content is equal to the expected value.
assertHttpContent(TestRequest, Pattern) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result content matches given Pattern.
assertHttpContent(String, String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result content is equal to the expected value.
assertHttpContent(String, byte[]) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result content is equal to the expected value.
assertHttpContent(String, Pattern) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result content matches given Pattern.
assertHttpHeader(TestRequest, String, String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result contains expected header field and its value is equal to expected.
assertHttpHeader(String, TestRequest, String, String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result contains expected header field and its value is equal to expected.
assertHttpIsHeader(TestRequest, String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result contains expected header field.
assertHttpIsHeader(String, TestRequest, String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result contains expected header field.
assertHttpNoHeader(TestRequest, String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result doesn't contains expected header field.
assertHttpNoHeader(String, TestRequest, String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result doesn't contains expected header field.
assertHttpOk(TestRequest) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result code is OK (200).
assertHttpOk(String, TestRequest) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result code is OK (200).
assertHttpOk(String) - Static method in class com.brokenevent.nanotests.HttpAssert
Asserts that the http query result code is OK (200).
assertInSet(T[], T[]) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that all values of the subset is exist in superset.
assertInSet(String, T[], T[]) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that all values of the subset is exist in superset.
assertLastRow(String, String, String, String) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from the last row of the table equals given value.
assertLastRow(String, String, String, int) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from the last row of the table equals given value.
assertLastRow(String, String, String, Date) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from the last row of the table equals given value.
assertLastRow(String, String, String, boolean) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from the last row of the table equals given value.
assertNotEquals(Object, Object) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that objects are not equal.
assertNotEquals(String, Object, Object) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that objects are not equal.
assertNotEquals(String, String) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that strings are not equal.
assertNotEquals(String, String, String) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that strings are not equal.
assertNotEquals(int, int) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that values are not equal.
assertNotEquals(String, int, int) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that values are not equal.
assertNotEquals(byte, byte) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that values are not equal.
assertNotEquals(String, byte, byte) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that values are not equal.
assertNotEquals(long, long) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that values are not equal.
assertNotEquals(String, long, long) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that values are not equal.
assertNotEquals(float, float) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that values are not equal.
assertNotEquals(String, float, float) - Static method in class com.brokenevent.nanotests.Asserts
Asserts that values are not equal.
assertQueryNotNull(String) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that query result is not empty.
assertQueryNull(String) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that query result is empty.
assertRow(String, String, String, String, String) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from one of the rows of the table equals the expected.
assertRow(String, String, String, String, int) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from one of the rows of the table equals the expected.
assertRow(String, String, String, String, boolean) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from one of the rows of the table equals the expected.
assertRow(String, String, int, String, String) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from one of the rows of the table equals the expected.
assertRow(String, String, int, String, int) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from one of the rows of the table equals the expected.
assertRow(String, String, int, String, boolean) - Static method in class com.brokenevent.nanotests.DbAssert
Asserts that the value from one of the rows of the table equals the expected.
Asserts - Class in com.brokenevent.nanotests
jUnit extensions class These methods can be used directly: DbAssert.assertDate(...)
Asserts() - Constructor for class com.brokenevent.nanotests.Asserts
 
assertUrlDomain(String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL's domain part is equal to the expected value.
assertUrlDomain(String, String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL's domain part is equal to the expected value.
assertUrlHaveParam(String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL have param with the given name.
assertUrlHaveParam(String, String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL have param with the given name.
assertUrlParam(String, String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL contains given param and it equals the given value.
assertUrlParam(String, String, String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL contains given param and it equals the given value.
assertUrlProtocol(String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL's protocol is equal to the expected value.
assertUrlProtocol(String, String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL's protocol is equal to the expected value.
assertUrlResource(String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL's resource part is equal to the expected value.
assertUrlResource(String, String, String) - Static method in class com.brokenevent.nanotests.UrlAssert
Asserts that the given URL's resource part is equal to the expected value.

C

close() - Method in class com.brokenevent.nanotests.db.ConnectionWrapper
Closes the statement created by this wrapper and releases the wrapper for further usage.
com.brokenevent.nanotests - package com.brokenevent.nanotests
 
com.brokenevent.nanotests.db - package com.brokenevent.nanotests.db
 
com.brokenevent.nanotests.http - package com.brokenevent.nanotests.http
 
com.brokenevent.nanotests.url - package com.brokenevent.nanotests.url
 
ConnectionWrapper - Class in com.brokenevent.nanotests.db
Simple SQL connection wrapper for connection pooling.
ConnectionWrapper(String, String, String) - Constructor for class com.brokenevent.nanotests.db.ConnectionWrapper
Creates and initializes wrapper with a connection.

D

DbAssert - Class in com.brokenevent.nanotests
Helper class for DataBase-related asserts.
DbAssert() - Constructor for class com.brokenevent.nanotests.DbAssert
Protect constructor since it is a static only class

E

execute(String) - Static method in class com.brokenevent.nanotests.DbAssert
Helper method to execute non-query statement with the existing connection.

G

getDomain() - Method in class com.brokenevent.nanotests.url.UrlParser
Gets the domain part of the URL.
getLastIdNum(String, String) - Static method in class com.brokenevent.nanotests.DbAssert
Helper method to get the last ID from the table where ID field is numeric.
getLastIdStr(String, String) - Static method in class com.brokenevent.nanotests.DbAssert
Helper method to get the last ID from the table where ID field is string.
getParam(String) - Method in class com.brokenevent.nanotests.url.UrlParser
Gets the param of the URL.
getProtocol() - Method in class com.brokenevent.nanotests.url.UrlParser
Gets the protocol part of the URL.
getRequestUrl() - Method in interface com.brokenevent.nanotests.http.TestRequest
Gets the fully qualified request URL
getResource() - Method in class com.brokenevent.nanotests.url.UrlParser
Gets the resource part of the URL.
getResponse() - Method in interface com.brokenevent.nanotests.http.TestRequest
Gets the http response object
getStatement() - Method in class com.brokenevent.nanotests.db.ConnectionWrapper
Create the SQL statement.

H

haveParam(String) - Method in class com.brokenevent.nanotests.url.UrlParser
Checks the param existance in the URL.
HttpAssert - Class in com.brokenevent.nanotests
Helper class for http-related asserts.
HttpAssert() - Constructor for class com.brokenevent.nanotests.HttpAssert
Protect constructor since it is a static only class

I

initDbAssert(String, String, String, String) - Static method in class com.brokenevent.nanotests.DbAssert
Initialize DbAssert before usage.
isBusy() - Method in class com.brokenevent.nanotests.db.ConnectionWrapper
Checks if the connection wrapper is busy (in use and not released) now.

L

loadDocument(String) - Static method in class com.brokenevent.nanotests.XmlAssert
Helper method to load the document from the string.

Q

query(String) - Static method in class com.brokenevent.nanotests.DbAssert
Helper method to execute query with the existing connection.
querySingle(String) - Static method in class com.brokenevent.nanotests.DbAssert
Helper method to execute query with a single-row result with the existing connection.
querySingleColumn(String) - Static method in class com.brokenevent.nanotests.DbAssert
Helper method to execute query with a single-column result with the existing connection.

R

release() - Method in class com.brokenevent.nanotests.db.ConnectionWrapper
Releases the connection wrapper and its SQL connection.

S

setContent(InputStream) - Method in class com.brokenevent.nanotests.http.TestPostRequest
Set the content for the POST request from stream.
setContent(byte[]) - Method in class com.brokenevent.nanotests.http.TestPostRequest
Sets the content for the POST request from byte array.
shutdownDbAssert() - Static method in class com.brokenevent.nanotests.DbAssert
Shutdown db connection.

T

TestGetRequest - Class in com.brokenevent.nanotests.http
POST request for http server tests.
TestGetRequest(String) - Constructor for class com.brokenevent.nanotests.http.TestGetRequest
Initializes instance of the GET request for the given resource.
TestHeadRequest - Class in com.brokenevent.nanotests.http
HEAD request for http server tests.
TestHeadRequest(String) - Constructor for class com.brokenevent.nanotests.http.TestHeadRequest
Initializes instance of the GET request for the given resource.
TestPostRequest - Class in com.brokenevent.nanotests.http
POST request for http server tests.
TestPostRequest(String) - Constructor for class com.brokenevent.nanotests.http.TestPostRequest
Initializes instance of the POST request for the given resource.
TestRequest - Interface in com.brokenevent.nanotests.http
Common interface for different test http requests

U

UrlAssert - Class in com.brokenevent.nanotests
Helper class for URL-related asserts.
UrlAssert() - Constructor for class com.brokenevent.nanotests.UrlAssert
Protect constructor since it is a static only class
UrlParser - Class in com.brokenevent.nanotests.url
Helper URL parser class to be used in UrlAssert
UrlParser(String) - Constructor for class com.brokenevent.nanotests.url.UrlParser
Initializes the instance of the UrlParser with the URL's parts.

X

XmlAssert - Class in com.brokenevent.nanotests
XML-related asserts helper.
XmlAssert() - Constructor for class com.brokenevent.nanotests.XmlAssert
Protect constructor since it is a static only class

A C D E G H I L Q R S T U X
BrokenEvent nanotests