private String describePort(Port port, TypeDescriptor descriptor) { String html = "<tr><tr>"+port.getName()+"</td></td>"; if (descriptor!=null && descriptor.isOptional()) { html += "<em>optional</em><br>"; } html+="Depth:"+port.getDepth()+"<br>"; if (descriptor != null )html+="<code>"+descriptor.getQname().toString()+"</code><br>"; html+="</td></tr>"; return html; }
private String describePort(Port port, TypeDescriptor descriptor) { String html = "<tr><td>"+port.getName()+"</td><td>"; if (descriptor!=null && descriptor.isOptional()) { html += "<em>optional</em><br>"; } html+="Depth:"+port.getDepth()+"<br>"; if (descriptor != null ) { html+="<code>"+descriptor.getQname().toString()+"</code><br>"; if (descriptor.getDocumentation() != null && !descriptor.getDocumentation().isEmpty()){ html += "<p>"+descriptor.getDocumentation()+"</p>"; } } html+="</td></tr>"; return html; }
assertTrue("db should be optional", typeDesc.isOptional()); assertFalse("db should not be unbounded", typeDesc.isUnbounded()); assertEquals("wrong name", "tool", typeDesc.getName()); assertEquals("wrong type", "string", typeDesc.getType()); assertTrue("tool should be optional", typeDesc.isOptional()); assertFalse("tool should not be unbounded", typeDesc.isUnbounded()); assertEquals("wrong name", "email", typeDesc.getName()); assertEquals("wrong type", "string", typeDesc.getType()); assertTrue("email should be optional", typeDesc.isOptional()); assertFalse("email should not be unbounded", typeDesc.isUnbounded());