Skip to content

Commit

Permalink
[WFLY-3638] : Reactivting the test now that WFLY-543 has been merged.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsavoie committed Sep 17, 2014
1 parent aed4b57 commit b389dc5
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -38,6 +38,7 @@
import org.jboss.arquillian.junit.InSequence;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.as.test.shared.FileUtils;
import org.jboss.as.test.shared.ModelParserUtils;

import org.jboss.dmr.ModelNode;
import org.jboss.dmr.Property;
Expand All @@ -46,7 +47,6 @@
import org.jboss.shrinkwrap.api.asset.Asset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -63,7 +63,6 @@
* @see org.jboss.as.test.parsing.ModelParserUtils
*/
@RunWith(Arquillian.class)
@Ignore("WFLY-3638: use org.jboss.as.test.shared.ModelParserUtils whith new version of core.")
public class ParseAndMarshalModelsTestCase {

@Deployment(name = "test", managed = false, testable = true)
Expand All @@ -72,7 +71,7 @@ public static Archive<?> getDeployment() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "bogus.jar");
archive.addPackage(ParseAndMarshalModelsTestCase.class.getPackage());
archive.addClass(FileUtils.class);
//WFLY-3638: archive.addClass(ModelParserUtils.class);
archive.addClass(ModelParserUtils.class);
archive.add(new Asset() {
public InputStream openStream() {
return new ByteArrayInputStream("Dependencies: org.jboss.staxmapper,org.jboss.as.controller,org.jboss.as.deployment-repository,org.jboss.as.server,org.jboss.as.host-controller,org.jboss.as.domain-management,org.jboss.as.security\n\n".getBytes());
Expand Down Expand Up @@ -362,7 +361,7 @@ private ModelNode standaloneXmlTest(File original) throws Exception {
if (file.exists()) {
file.delete();
}
throw new UnsupportedOperationException("Use \"return ModelParserUtils.standaloneXmlTest(original, file);\" when it is ready");
return ModelParserUtils.standaloneXmlTest(original, file);
}

@Test
Expand Down Expand Up @@ -405,7 +404,7 @@ private void hostXmlTest(final File original) throws Exception {
if (file.exists()) {
file.delete();
}
throw new UnsupportedOperationException("Use \"ModelParserUtils.hostXmlTest(original, file);\" when it is ready");
ModelParserUtils.hostXmlTest(original, file);
}

@Test
Expand Down Expand Up @@ -460,7 +459,7 @@ private ModelNode domainXmlTest(final File original) throws Exception {
if (file.exists()) {
file.delete();
}
throw new UnsupportedOperationException("Use \"return ModelParserUtils.domainXmlTest(original, file);\" when it is ready");
return ModelParserUtils.domainXmlTest(original, file);
}

private static void validateJsfProfiles(ModelNode model) {
Expand Down

0 comments on commit b389dc5

Please sign in to comment.