java-properties-005

Tests that a Java properties file can not be cast to binary.

Test is expected to fail with error code cxerr:XC0001.

The pipeline

<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                xmlns:cxerr="http://xmlcalabash.com/ns/error"
                xmlns:ex="https://xmlcalabash.com/ns/examples" xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0"
                xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-inline-prefixes="ex xs cx"
                name="main" version="3.0">
   <p:output port="result"/>
   <p:cast-content-type content-type="application/octet-stream">
      <p:with-input>
         <p:inline content-type="text/x-java-properties"># With a comment.
version=1.0
name=TestApp
date=2016-11-12</p:inline>
      </p:with-input>
   </p:cast-content-type>
</p:declare-step>

Revision history

20 Jan 2025, Norm Tovey-Walsh
Created test.