package net.sf.sahi.ant;
/**
* Sahi - Web Automation and Test Tool
*
* Copyright 2006 V Narayan Raman
*
* 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.
*/
/**
* User: dlewis
* Date: Dec 6, 2006
* Time: 11:12:39 AM
*/
/* FIXME how to junit4?
though these seem to be integration tests, not unit tests
public class RunSahiTaskTest extends BuildFileTest {
public RunSahiTaskTest(String s) {
super(s);
}
@Before
public void setUp() throws Exception {
configureProject("antTest.xml");
}
@Test
@Ignore("Move to integration test phase")
public void testSahiWithoutNested() {
executeTarget("testSahiWithoutNested");
}
@Test
@Ignore("Move to integration test phase")
public void testSahiWithNestedReport() {
executeTarget("testSahiWithNestedReport");
}
@Test
@Ignore("Move to integration test phase")
public void testReportWithInvalidType() {
try {
executeTarget("testReportWithInvalidType");
fail("Should throw BuildException for invalid type attribute");
} catch (BuildException e) {
assertTrue(true);
}
}
@Test
@Ignore("Move to integration test phase")
public void testSahiWithNestedCreateIssue() {
executeTarget("testSahiWithNestedCreateIssue");
}
@Test
@Ignore("Move to integration test phase")
public void testCreateIssueWithInvalidTool() {
try {
executeTarget("testCreateIssueWithInvalidTool");
fail("Should throw BuildException for invalid tool attribute");
} catch (BuildException e) {
assertTrue(true);
}
}
@Test
@Ignore("Move to integration test phase")
public void testSahiWithNestedCreateIssueAndReport() {
executeTarget("testSahiWithNestedCreateIssueAndReport");
}
}
*/