Class org.lightningj.lnd.wrapper.XMLParserSpec

17

tests

0

failures

0

ignored

3.438s

duration

100%

successful

Tests

Test Duration Result
Verify that getSchema() returns a Schema 0.010s passed
Verify that invalid XML throws JAXBException 0.415s passed
Verify that invalid mashalling data throws JAXBException 0.465s passed
Verify that it is possible to marshall and unmarshall a chainnotifier message 0.075s passed
Verify that it is possible to marshall and unmarshall a router message 0.072s passed
Verify that it is possible to marshall and unmarshall a signer message 0.105s passed
Verify that it is possible to marshall and unmarshall a walletkit message 0.079s passed
Verify that it is possible to marshall and unmarshall a watchtower message 0.077s passed
Verify that it is possible to marshall and unmarshall an autoenroll message 0.076s passed
Verify that it is possible to marshall and unmarshall an invoices message 0.076s passed
Verify that marshall of enum is done correctly 0.059s passed
Verify that marshall returns a valid XML variant containing List 1.156s passed
Verify that marshall returns a valid XML variant containing Map 0.072s passed
Verify that schema is checked when unmarshalling 0.476s passed
Verify that unmarshall returns a valid Message Object for XML containing List 0.105s passed
Verify that unmarshall returns a valid Message Object for XML containing Map 0.065s passed
Verify unmarshall returns a valid Message Object for XML containing enum 0.055s passed

Standard output

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<walletkit:SendOutputsRequest xmlns:chainnotifier="http://lightningj.org/xsd/chainnotifier_1_0" xmlns:invoices="http://lightningj.org/xsd/invoices_1_0" xmlns:autopilot="http://lightningj.org/xsd/autopilot_1_0" xmlns:router="http://lightningj.org/xsd/router_1_0" xmlns:watchtower="http://lightningj.org/xsd/watchtower_1_0" xmlns="http://lightningj.org/xsd/lndjapi_1_0" xmlns:signer="http://lightningj.org/xsd/signer_1_0" xmlns:walletkit="http://lightningj.org/xsd/walletkit_1_0">
    <walletkit:satPerKw>10</walletkit:satPerKw>
    <walletkit:outputs>
        <walletkit:TxOut>
            <signer:value>100</signer:value>
            <signer:pkScript></signer:pkScript>
        </walletkit:TxOut>
        <walletkit:TxOut>
            <signer:value>200</signer:value>
            <signer:pkScript></signer:pkScript>
        </walletkit:TxOut>
    </walletkit:outputs>
</walletkit:SendOutputsRequest>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<watchtower:GetInfoRequest xmlns:chainnotifier="http://lightningj.org/xsd/chainnotifier_1_0" xmlns:invoices="http://lightningj.org/xsd/invoices_1_0" xmlns:autopilot="http://lightningj.org/xsd/autopilot_1_0" xmlns:router="http://lightningj.org/xsd/router_1_0" xmlns:watchtower="http://lightningj.org/xsd/watchtower_1_0" xmlns="http://lightningj.org/xsd/lndjapi_1_0" xmlns:signer="http://lightningj.org/xsd/signer_1_0" xmlns:walletkit="http://lightningj.org/xsd/walletkit_1_0"/>