package com.izforge.izpack.compiler.packager.impl;

import static org.junit.Assert.fail;

import java.io.IOException;

import org.junit.Test;

import com.izforge.izpack.api.adaptator.IXMLElement;
import com.izforge.izpack.compiler.resource.ResourceFinder;

public class PackagerTest {

	@Test
	public void testWritePacks() throws IOException {
		final ResourceFinder resourceFinder = new ResourceFinder(null, null,
				null, null) {
			@Override
			public IXMLElement getXMLTree() throws IOException {
				return super.getXMLTree();
			}
		};
		final Packager packager = new Packager(null, null, null, null, null,
				null, null, null, null, null, null, resourceFinder);
		packager.writeManifest();
		fail("Not yet implemented");
	}

}

@@ -112,16 +112,49 @@
 ption;%0A%0A
+import org.dom4j.dom.DOMElement;%0A
 import o
@@ -168,16 +168,16 @@
 t.Test;%0A
-
 %0Aimport 
@@ -218,24 +218,85 @@
 XMLElement;%0A
+import com.izforge.izpack.api.adaptator.impl.XMLElementImpl;%0A
 import com.i
@@ -597,32 +597,202 @@
 %09%09%09%09
-return super.getXMLTree(
+final DOMElement rootNode = new DOMElement(%22installation%22);%0A%09%09%09%09final DOMElement guiPrefsNode = new DOMElement(%22guiprefs%22);%0A%09%09%09%09rootNode.add(guiPrefsNode);%0A%09%09%09%09return new XMLElementImpl(rootNode
 );%0A%09

Add installation/guiprefs XML node w/o splash child