|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase edu.sdsc.inca.AgentClientTest
public class AgentClientTest
A unit test driver for the Agent and AgentClient classes.
Field Summary | |
---|---|
static int |
ATTRIBUTE_COUNT
|
static java.lang.String[] |
REPORTER_BODIES
|
Constructor Summary | |
---|---|
AgentClientTest()
|
Method Summary | |
---|---|
static void |
makeRepository(java.lang.String path,
int first,
int last)
Generate a sample reporter repository using the global reporters in this file. |
void |
setUp()
Start up an Inca agent server and a client for testing |
void |
tearDown()
Shutdown the global client and agent server. |
void |
testCatalogEmpty()
Tests whether the agent can send a catalog w/no reporters. |
void |
testCatalogRefresh()
Tests whether the agent refreshes its repository cache when asked for its combined catalog. |
void |
testCatalogSingle()
Tests whether the agent can sent a catalog from a single repository. |
void |
testConfigCommand()
Test agent resource transmission. |
void |
testConfigEmpty()
Tests that the agent can report and process an empty configuration. |
void |
testRepositoryDelete()
Tests whether the agent can shorten its repository list. |
void |
testRepositoryMultiple()
Tests whether the agent can process multiple valid repositories. |
void |
testRepositorySingle()
Tests whether the agent can process a valid repository. |
void |
testSuiteCommands()
Test Agent suite manipulation. |
void |
testSuitesMultiple()
Test the setConfig and getConfig commands with a mock depot. |
void |
testSuitesProxy()
Test the ability for agent to send proxy information. |
void |
testSuitesProxyBad()
Test the ability for agent to send proxy information. |
void |
testSuiteWithPackageUpdate()
The repository cache will check for package updates periodically or whenever the Agent's setRepositories function is invoked. |
static void |
updateVersionInCatalog(edu.sdsc.inca.repository.Repositories repositories,
java.lang.String reporterName,
java.lang.String version)
Change the version of a reporter in the reporter repository. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ATTRIBUTE_COUNT
public static final java.lang.String[] REPORTER_BODIES
Constructor Detail |
---|
public AgentClientTest()
Method Detail |
---|
public static void makeRepository(java.lang.String path, int first, int last) throws java.io.IOException
path
- The destination of the reporter repository.first
- The start index of the reporters to include in the
repositorylast
- The end index of the reporters to include in the repository
java.io.IOException
- if problem creating repositorypublic void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testCatalogEmpty()
public void testCatalogSingle()
public void testCatalogRefresh()
public void testConfigCommand() throws java.lang.Exception
java.lang.Exception
- if problem running testpublic void testConfigEmpty()
public void testRepositoryDelete()
public void testRepositorySingle()
public void testRepositoryMultiple()
public void testSuiteCommands() throws java.lang.Exception
java.lang.Exception
- if problem running testpublic void testSuitesProxy()
public void testSuitesProxyBad()
public void testSuitesMultiple()
public void testSuiteWithPackageUpdate() throws java.lang.Exception
java.lang.Exception
- if problem running testpublic static void updateVersionInCatalog(edu.sdsc.inca.repository.Repositories repositories, java.lang.String reporterName, java.lang.String version) throws java.io.IOException
repositories
- A list of reporter repositoriesreporterName
- The name of the reporter to change the version onversion
- The new version of the reporter.
java.io.IOException
- if problem updating catalog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |