use of org.apache.synapse.libraries.imports.SynapseImport in project wso2-synapse by wso2.
the class SynapseImportSerializerTest method testSerializeImportNoLibName.
/**
* Test serializeImport with incomplete synapseImport.
*/
@Test
public void testSerializeImportNoLibName() {
SynapseImport synapseImport = new SynapseImport();
thrown.expect(SynapseException.class);
thrown.expectMessage("Invalid Synapse Import. Target Library name is required");
SynapseImportSerializer.serializeImport(synapseImport);
}
Aggregations