APISonar


org.hyperledger.fabric.sdk.TransactionRequest.Type.JAVA

> org > hyperledger > fabric > sdk > TransactionRequest > Type > JAVA
org APIs hyperledger APIs fabric APIs sdk APIs TransactionRequest APIs Type APIs JAVA APIs

Example 1
public void testBuildChaincodePathJavaFile() throws Exception {

        thrown.expect(IllegalArgumentException.class);
        thrown.expectMessage("chaincodePath must be null for Java chaincode");

        InstallProposalBuilder builder = createTestBuilder();

        builder.setChaincodeLanguage(TransactionRequest.Type.JAVA);
        builder.setChaincodeSource(new File("some/dir"));
        builder.chaincodePath("null or empty string");

        builder.build();
    }