Commit 8483bfd5 authored by stancakapost's avatar stancakapost
Browse files

fixed purpose format and added TC_Neg for negative tests

parent c8905b4b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public class NewTestCase implements IObjectActionDelegate {
	private static final String TTCN_TEMPLATE = "/***************************************************\n"
			+ " ** @author   STF 475\n"
			+ " ** @version  0.0.1\n"
			+ " ** @purpose  9:%1$s\n"
			+ " ** @purpose  9:%1$s, TODO write purpose\n"
			+ " ** @verdict  pass accept, ttcn3verdict:pass\n"
			+ " ***************************************************/\n"
			+ "module %2$s {\n"
@@ -40,7 +40,7 @@ public class NewTestCase implements IObjectActionDelegate {
			+ "    // TODO specify type for the template\n"
			+ "    template __type__ m_msg := { };\n"
			+ "\n"
			+ "//#TC\n" 
			+ "//#TC%3$s\n" 
			+"}\n";
	
	private static final String XSD_TEMPLATE = 
@@ -119,8 +119,9 @@ public class NewTestCase implements IObjectActionDelegate {
			pm.beginTask("New test case", 4);
			tcfolder.create(true, true, new NullProgressMonitor());
			pm.worked(1);
			String tcMacroSuffix = "Neg".equals(tckind) ? "_Neg" : "";
			// TODO get section number
			String ttcn_content = String.format(TTCN_TEMPLATE, section, name);
			String ttcn_content = String.format(TTCN_TEMPLATE, section, name, tcMacroSuffix);
			String xsd_content = String.format(XSD_TEMPLATE, name);
			String xml_content = String.format(XML_TEMPLATE, name);