public class HubTester extends Tester
Constructor and Description |
---|
HubTester(ClientProfile profile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
createRandomObject(int level,
boolean ugly)
Generates an object with random content for transmission using SAMP.
|
String |
createRandomString(boolean ugly)
Creates a new random string for transmission using SAMP.
|
static void |
main(String[] args)
Main method.
|
void |
run()
Perform a wide variety of tests on a running hub.
|
static int |
runMain(String[] args)
Does the work for the main method.
|
assertEquals, assertEquals, assertTrue, fail
public HubTester(ClientProfile profile) throws IOException
profile
- hub discovery objectIOException
public void run() throws IOException
IOException
public Object createRandomObject(int level, boolean ugly)
level
- maximum level of nesting (how deeply lists/maps
may appear within other lists/maps)ugly
- if true, any legal SAMP content will be used;
if false, the returned object should be reasonably
human-readable if printed (toString)public String createRandomString(boolean ugly)
ugly
- if true, any legal SAMP content will be used;
if false, the returned object should be reasonably
human-readable if printed (toString)public static void main(String[] args) throws IOException
IOException
public static int runMain(String[] args) throws IOException
IOException
Copyright © 2008–2024. All rights reserved.