Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bauer committed Oct 21, 2014
1 parent a167415 commit 404bb93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ https://github.com/4thline/cling/blob/master/distribution/src/dist/README.txt
Building Cling
---------------------

* Install Maven 3.1.1 or newer.
* Install Maven 3.2.3 or newer.

* Install the Android SDK and set the ANDROID_HOME environment variable to the SDK install directory.

* Copy the Android SDK's Maven extras `$ANDROID_HOME/extras/android/m2repository` to your local Maven repository `~/.m2`.

* Clone the Cling source:

````
Expand Down
11 changes: 7 additions & 4 deletions core/src/test/java/example/registry/RegistryListenerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.fourthline.cling.registry.Registry;
import org.fourthline.cling.test.data.SampleData;
import org.testng.annotations.Test;
import org.xml.sax.SAXParseException;

import static org.testng.Assert.assertEquals;

Expand Down Expand Up @@ -166,9 +167,10 @@ public StreamResponseMessage[] getStreamResponseMessages() {
}
return new StreamResponseMessage[]{
new StreamResponseMessage(deviceDescriptorXML, ContentTypeHeader.DEFAULT_CONTENT_TYPE_UTF8),
null,
null,
null // Don't return any service descriptors, make it fail
new StreamResponseMessage(
"<?xml>THIS SHOULD BE SERVER DESCRIPTOR XML, BUT WE WANT IT TO FAIL WITH SAXParseException.",
ContentTypeHeader.DEFAULT_CONTENT_TYPE_UTF8
),
};
}
};
Expand Down Expand Up @@ -212,7 +214,8 @@ public class FailureQuickstartRegistryListener extends DefaultRegistryListener {

@Override
public void remoteDeviceDiscoveryFailed(Registry registry, RemoteDevice device, Exception ex) {
valid = true;
if(ex.getCause() instanceof SAXParseException)
valid = true;
}
}

Expand Down
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,12 @@
<jetty.version>8.1.8.v20121106</jetty.version>
<cdi.api.version>1.0-SP4</cdi.api.version>
<ejb.api.version>3.0</ejb.api.version>
<servlet.api.version>2.5</servlet.api.version>
<resteasy.version>2.0.1.GA</resteasy.version>
<slf4j.version>1.6.1</slf4j.version>
<slf4j.bridge.version>1.5.11</slf4j.bridge.version>
<jna.version>3.2.5</jna.version>
<gstreamer.version>1.4</gstreamer.version>
<args4j.version>2.0.12</args4j.version>
<weld.version>1.1.10.Final</weld.version>
<javassist.version>3.14.0-GA</javassist.version>
<commons.codec.version>1.4</commons.codec.version>
<commons.logging.version>1.1.1</commons.logging.version>
<kxml.version>2.3.0</kxml.version>

</properties>
Expand Down

0 comments on commit 404bb93

Please sign in to comment.