|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
nesstar.test.NesstarTestCase
nesstar.test.functional.ACUTestBase
public class ACUTestBase
A test class for the Nesstar ACU.
| Field Summary | |
|---|---|
static String |
CUBE_TO_PUBLISH
|
static String |
DEFAULT_EXTENSION
|
static String |
DEFAULT_POLICY
|
static String |
EXT_SERVER_PATH
|
static String |
OLD_DEFAULT_POLICY
|
String |
POLICY_ACU_FILE
|
static String |
TEST_ACUEXT_5
|
static String |
TEST_DEFAULT_POLICY_1
|
static String |
TEST_DEFAULT_POLICY_2
|
static String |
TEST_DEFAULT_POLICY_3
|
static String |
TEST_POLICY_1
|
static String |
TEST_POLICY_2
|
static String |
TEST_POLICY_3
|
static String |
TEST_POLICY_4
|
static String |
TEST_POLICY_5
|
static String |
TEST_POLICY_6
|
static String |
TEST_POLICY_7
|
static String |
TEST_POLICY_8
|
| Constructor Summary | |
|---|---|
ACUTestBase(String testName)
Constructor for the ACUTestBase object |
|
| Method Summary | |
|---|---|
void |
assertAccessDenied(String message,
Object msg)
assert access denied to a method |
static void |
cancel(com.meterware.httpunit.WebConversation web,
com.meterware.httpunit.WebResponse resp)
|
void |
checkPolicy(String policy)
|
boolean |
compare(File policy)
|
static boolean |
compare(File file_a,
File file_b)
|
static void |
err(Throwable ex)
|
String |
Frequency(Study st,
int v)
|
static CubeHome |
getCubeHome()
|
String |
GetDDISkeleton(Study st)
|
String |
getObjects(Vector objs)
|
String[] |
getPolicyFromReport()
|
String |
getPolicyName(File policy)
|
boolean |
isAccessDenied(Object msg)
check if access to a method is denied |
static boolean |
isAgreement(com.meterware.httpunit.WebResponse resp)
|
static boolean |
isChallenge(com.meterware.httpunit.WebResponse resp)
|
static boolean |
isLogin(com.meterware.httpunit.WebResponse resp)
|
static boolean |
isSetProject(com.meterware.httpunit.WebResponse resp)
|
static boolean |
isSetRole(com.meterware.httpunit.WebResponse resp)
|
static com.meterware.httpunit.WebResponse |
login(com.meterware.httpunit.WebConversation web,
com.meterware.httpunit.WebResponse resp,
String username,
String password)
|
static void |
main(String[] args)
The main program for the ACUTestBase class |
int |
saveFile(String server_path,
File file)
Save a file on the server and check it. |
void |
setUpDatabase(String[] command)
|
String |
Subset(Study st)
|
String |
Subset(Study st,
int v)
|
String |
Subset(Study st,
int v,
int v1)
|
String |
SubsetByName(Study st,
int v)
|
static junit.framework.Test |
suite()
Return the suite of all tests of this class * |
String |
Tabulation(Study st,
int v)
|
void |
testBasicSetup()
|
void |
testCancel()
|
void |
testCatalog()
tests performed and challenge, if any: Query RemoveDataset --> Login --> Cancel |
void |
testLoadDefaultPolicy()
load the default policy in the server |
void |
testRestoreDatabase()
|
void |
testRestoreUsers()
|
void |
testServer()
tests performed and challenge, if any: GetReport --> Login GetServerHome GetFile --> Login |
void |
testUpgradeUsers()
|
void |
testUser()
A unit test for User UserHome.findAll UserHome.findByKey User.ChangePassword |
void |
updateDatabasePolicy_7()
|
void |
updateDatabaseStatement()
|
void |
updateDatabaseStatement(String subejct,
String subejcttype,
String object,
String objecttype,
int index)
|
void |
updateServer(File zip)
update the server |
void |
updateServerPolicy(File policy)
|
void |
updateServerPolicy(File policy,
File ext)
save a new policy.acu in the server config directory and reboot |
void |
updateServerPolicy(File policy,
File ext,
boolean clean)
save a new policy.acu in the server config directory and reboot |
void |
updateServerPolicy(File policy,
int repetition)
|
void |
updateServerPolicy(File policy,
int repetition,
File ext)
update the server with a new policy and extension |
void |
updateServerPolicy(File policy,
int repetition,
File ext,
boolean clean)
update the server with a new policy and extension |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, getName, run, run, runBare, 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final String POLICY_ACU_FILE
public static final String EXT_SERVER_PATH
public static final String DEFAULT_POLICY
public static final String DEFAULT_EXTENSION
public static final String TEST_DEFAULT_POLICY_1
public static final String TEST_DEFAULT_POLICY_2
public static final String TEST_DEFAULT_POLICY_3
public static final String OLD_DEFAULT_POLICY
public static final String TEST_POLICY_1
public static final String TEST_POLICY_2
public static final String TEST_POLICY_3
public static final String TEST_POLICY_4
public static final String TEST_POLICY_5
public static final String TEST_POLICY_6
public static final String TEST_POLICY_7
public static final String TEST_POLICY_8
public static final String TEST_ACUEXT_5
public static final String CUBE_TO_PUBLISH
| Constructor Detail |
|---|
public ACUTestBase(String testName)
testName - | Method Detail |
|---|
public static boolean isChallenge(com.meterware.httpunit.WebResponse resp)
throws Exception
Exception
public static boolean isLogin(com.meterware.httpunit.WebResponse resp)
throws Exception
Exception
public static boolean isAgreement(com.meterware.httpunit.WebResponse resp)
throws Exception
Exception
public static boolean isSetRole(com.meterware.httpunit.WebResponse resp)
throws Exception
Exception
public static boolean isSetProject(com.meterware.httpunit.WebResponse resp)
throws Exception
Exceptionpublic static void main(String[] args)
args - The command line argumentspublic static junit.framework.Test suite()
public static com.meterware.httpunit.WebResponse login(com.meterware.httpunit.WebConversation web,
com.meterware.httpunit.WebResponse resp,
String username,
String password)
throws Exception
Exception
public static void cancel(com.meterware.httpunit.WebConversation web,
com.meterware.httpunit.WebResponse resp)
public String[] getPolicyFromReport()
throws Exception
Exception
public String getPolicyName(File policy)
throws Exception
Exception
public boolean compare(File policy)
throws Exception
Exception
public void updateServerPolicy(File policy,
File ext,
boolean clean)
throws Exception
policy -
Exception
public void updateServerPolicy(File policy,
File ext)
throws Exception
policy -
Exception
public void updateServerPolicy(File policy)
throws Exception
Exception
public void updateServerPolicy(File policy,
int repetition)
throws Exception
Exception
public void updateServerPolicy(File policy,
int repetition,
File ext)
throws Exception
policy - the new policy to be loaded in the serverrepetition - the number of reboot to be repeatedext - the extension file to be updated
Exception
public void updateServerPolicy(File policy,
int repetition,
File ext,
boolean clean)
throws Exception
policy - the new policy to be loaded in the serverrepetition - the number of reboot to be repeatedext - the extension file to be updated
Exception
public void updateServer(File zip)
throws Exception
zip - the zip file containing the files to be updated
Exception
public int saveFile(String server_path,
File file)
throws Exception
server_path - the path on the serverfile - the file to be saved
Exception
public void testLoadDefaultPolicy()
throws Exception
Exception
public void testBasicSetup()
throws Exception
Exception
public void testServer()
throws Exception
Exception
public void testCatalog()
throws Exception
Exception
public void testCancel()
throws Exception
Exception
public void testUser()
throws Exception
Exception
public boolean isAccessDenied(Object msg)
throws Exception
Exception
public void assertAccessDenied(String message,
Object msg)
throws Exception
Exception
public String GetDDISkeleton(Study st)
throws Exception
Exception
public String Frequency(Study st,
int v)
throws Exception
Exception
public String Tabulation(Study st,
int v)
throws Exception
Exception
public String Subset(Study st,
int v)
throws Exception
Exception
public String Subset(Study st,
int v,
int v1)
throws Exception
Exception
public String Subset(Study st)
throws Exception
Exception
public String SubsetByName(Study st,
int v)
throws Exception
Exception
public static boolean compare(File file_a,
File file_b)
throws Exception
Exceptionpublic String getObjects(Vector objs)
public void setUpDatabase(String[] command)
throws Exception
Exception
public static CubeHome getCubeHome()
throws Exception
Exception
public void checkPolicy(String policy)
throws Exception
Exception
public void testRestoreDatabase()
throws Exception
Exception
public void updateDatabasePolicy_7()
throws Exception
Exception
public void updateDatabaseStatement(String subejct,
String subejcttype,
String object,
String objecttype,
int index)
throws Exception
Exception
public void updateDatabaseStatement()
throws Exception
Exception
public void testUpgradeUsers()
throws Exception
Exception
public void testRestoreUsers()
throws Exception
Exceptionpublic static void err(Throwable ex)
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||