|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.mbdev.openstage.test.OpenStageSDK_Test
public abstract class OpenStageSDK_Test
This class is used to test behaviour of various methods from SDK. It sends character
streams to console instead of network, therefore it is very easy to debug the SDK.
Subclasses should define the main() method, and only invoke own constructor there. This
will start SDK test, which should be defined in the writeXml(PrintWriter) method of a
subclass. Test is meant to be generating sample XML output via
Xml.sendTo(PrintWriter out)
method. This output is then redirected by this
class to System.out, and all exceptions are also printed out to console.
Copyright 2011 Mateusz Bysiek, mb@mbdev.pl, http://mbdev.pl/ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constructor Summary | |
---|---|
protected |
OpenStageSDK_Test()
Default constructor. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Subclasses must define this method, and only invoke own constructor here. |
protected abstract void |
writeXml(java.io.PrintWriter out)
Here you should initialize all XML objects you would like to test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected OpenStageSDK_Test()
Method Detail |
---|
protected abstract void writeXml(java.io.PrintWriter out)
Xml
sub-class, or your custom
class.
out
- PrintWriter created from System.out, you should use sendTo(out) at some
point of your test to see any resultspublic static void main(java.lang.String[] args)
args
- not used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |