Browse files

Adding schema test

  • Loading branch information...
1 parent 72136f0 commit 1fe0fbb3d34ecd1db7e045c9f9d294de13a30ac2 @flbulgarelli flbulgarelli committed Oct 27, 2011
View
38 src/test/java/org/mule/modules/applepush/ApplePushSchemaTestCase.java
@@ -0,0 +1,38 @@
+/**
+ * Mule ApplePush Cloud Connector
+ *
+ * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
+ *
+ * The software in this package is published under the terms of the CPAL v1.0
+ * license, a copy of which has been included with this distribution in the
+ * LICENSE.txt file.
+ */
+
+/**
+ * This file was automatically generated by the Mule Cloud Connector Development Kit
+ */
+
+package org.mule.modules.applepush;
+
+import org.mule.tck.junit4.FunctionalTestCase;
+
+import org.junit.Test;
+
+
+public class ApplePushSchemaTestCase extends FunctionalTestCase
+{
+ @Override
+ protected String getConfigResources()
+ {
+ return "apple-push-schema-test.xml";
+ }
+
+ /**
+ * Tests that the xml can be parsed
+ */
+ @Test
+ public void isSchemaValid() throws Exception
+ {
+ // NOTHING. Will fail if the xml is malformed
+ }
+}
View
34 src/test/resources/apple-push-schema-test.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Mule ApplePush Cloud Connector
+
+ Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
+
+ The software in this package is published under the terms of the CPAL v1.0
+ license, a copy of which has been included with this distribution in the
+ LICENSE.txt file.
+
+-->
+
+
+<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:spring="http://www.springframework.org/schema/beans"
+ xmlns:apple-push="http://www.mulesoft.org/schema/mule/apple-push"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+ http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd
+ http://www.mulesoft.org/schema/mule/apple-push http://www.mulesoft.org/schema/mule/apple-push/2.0/mule-apple-push.xsd">
+
+ <apple-push:config host="${host}" port="5669" keystorePassword="${keystorePassword}" keystore="${keystore}"/>
+
+ <flow name="Send">
+ <apple-push:send
+ deviceToken="c9d4c07c fbbc26d6 ef87a44d 53e16983 1096a5d5 fd825475 56659ddd f715defc"
+ alert="Hello Apple Push!" sound="default">
+ <apple-push:fields>
+ <apple-push:customField1>value1</apple-push:customField1>
+ </apple-push:fields>
+ </apple-push:send>
+ </flow>
+
+</mule>

0 comments on commit 1fe0fbb

Please sign in to comment.