protected Result execute(TestCmd cmd) throws Exception { if(cmd.getType() == TestCmd.CommandType.MRADMIN) { return cmdExecutor.executeCommand(cmd.getCmd()); } else if(cmd.getType() == TestCmd.CommandType.ARCHIVE) { return archiveCmdExecutor.executeCommand(cmd.getCmd()); } else { return super.execute(cmd); } }
/** * Tear down */ public void tearDown() throws Exception { displayResults(); }
@Override protected String expandCommand(final String cmd) { String expCmd = cmd; expCmd = expCmd.replaceAll("NAMENODE", namenode); expCmd = super.expandCommand(cmd); return expCmd; }
@Test @Override public void testAll() { super.testAll(); }
@After @Override public void tearDown() throws Exception { super.tearDown(); }
/** * Method decides what is a proper configuration file parser for this type * of CLI tests. * Ancestors need to override the implementation if a parser with additional * features is needed. Also, such ancestor has to provide its own * TestConfigParser implementation * @return an instance of TestConfigFileParser class */ protected TestConfigFileParser getConfigParser () { return new TestConfigFileParser(); }
@Override protected TestConfigFileParser getConfigParser() { return new TestConfigFileParserCryptoAdmin(); }
@Override protected TestConfigFileParser getConfigParser() { return new TestConfigFileParserCacheAdmin(); }
@Override protected TestConfigFileParser getConfigParser() { return new TestConfigFileParserDFS(); }
@Test @Override public void testAll() { super.testAll(); }
@After @Override public void tearDown() throws Exception { super.tearDown(); }
/** * Tear down */ public void tearDown() throws Exception { displayResults(); }
/** * Method decides what is a proper configuration file parser for this type * of CLI tests. * Ancestors need to override the implementation if a parser with additional * features is needed. Also, such ancestor has to provide its own * TestConfigParser implementation * @return an instance of TestConfigFileParser class */ protected TestConfigFileParser getConfigParser () { return new TestConfigFileParser(); }
@Test @Override public void testAll () { super.testAll(); } }
@After @Override public void tearDown() throws Exception { super.tearDown(); }
/** * Tear down */ public void tearDown() throws Exception { displayResults(); }
@Test @Override public void testAll() { super.testAll(); }
@Test @Override public void testAll() { super.testAll(); } }
@Test @Override public void testAll() { super.testAll(); } }
@Test @Override public void testAll () { super.testAll(); } }