latest test

This commit is contained in:
GME 2019-03-14 20:44:40 +01:00
parent c663dd5050
commit 05b1827450
4 changed files with 52 additions and 52 deletions

View file

@ -3,13 +3,8 @@
<component name="ChangeListManager">
<list default="true" id="7c8802f8-163e-48a6-9d7a-9324ac89091d" name="Default" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/msp/org1/User-org1.context" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/msp/org1/User2-org1.context" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/msp/org1/admin.context" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/blockchain/client/ChannelClientWrapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/blockchain/client/ChannelClientWrapper.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/blockchain/configuration/Config.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/blockchain/configuration/Config.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/test/java/blockchain/client/TestRegisterEnrollUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/blockchain/client/TestRegisterEnrollUser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/test/java/blockchain/query/QueryChannelTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/blockchain/query/QueryChannelTest.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/test/java/blockchain/query/QueryTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/blockchain/query/QueryTest.java" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
@ -24,11 +19,11 @@
<session id="-1607393105">
<usages-collector id="statistics.lifecycle.project">
<counts>
<entry key="project.closed" value="13" />
<entry key="project.closed" value="15" />
<entry key="project.open.time.5" value="3" />
<entry key="project.open.time.6" value="9" />
<entry key="project.open.time.6" value="11" />
<entry key="project.open.time.8" value="1" />
<entry key="project.opened" value="13" />
<entry key="project.opened" value="15" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
@ -45,23 +40,23 @@
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="java" value="168" />
<entry key="java" value="193" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="JAVA" value="168" />
<entry key="JAVA" value="193" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="true">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/java/blockchain/configuration/Config.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="201">
<caret line="36" column="31" selection-start-line="36" selection-start-column="31" selection-end-line="36" selection-end-column="31" />
<state relative-caret-position="575">
<caret line="37" column="64" selection-start-line="37" selection-start-column="64" selection-end-line="37" selection-end-column="64" />
</state>
</provider>
</entry>
@ -111,11 +106,11 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/test/java/blockchain/query/QueryTest.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="306">
<caret line="28" column="42" lean-forward="true" selection-start-line="28" selection-start-column="42" selection-end-line="28" selection-end-column="42" />
<state relative-caret-position="425">
<caret line="35" column="37" selection-start-line="35" selection-start-column="37" selection-end-line="35" selection-end-column="37" />
</state>
</provider>
</entry>
@ -179,8 +174,8 @@
<option value="$PROJECT_DIR$/src/main/java/blockchain/client/ChannelClientWrapper.java" />
<option value="$PROJECT_DIR$/src/test/java/blockchain/query/QueryChannelTest.java" />
<option value="$PROJECT_DIR$/src/test/java/blockchain/client/TestRegisterEnrollUser.java" />
<option value="$PROJECT_DIR$/src/test/java/blockchain/query/QueryTest.java" />
<option value="$PROJECT_DIR$/src/main/java/blockchain/configuration/Config.java" />
<option value="$PROJECT_DIR$/src/test/java/blockchain/query/QueryTest.java" />
</list>
</option>
</component>
@ -201,8 +196,8 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="Scope" />
<pane id="PackagesPane" />
<pane id="ProjectPane">
<subPane>
<expand>
@ -417,7 +412,7 @@
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1551295777732" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1552592496675" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
@ -557,8 +552,8 @@
<recent_temporary>
<list>
<item itemvalue="JUnit.QueryTest" />
<item itemvalue="JUnit.QueryChannelTest" />
<item itemvalue="JUnit.TestEnrollAdmin" />
<item itemvalue="JUnit.QueryChannelTest" />
<item itemvalue="JUnit.TestRegisterEnrollUser" />
<item itemvalue="JUnit.ReadUserTest" />
</list>
@ -601,19 +596,12 @@
<workItem from="1551124909913" duration="739000" />
<workItem from="1551206164180" duration="2072000" />
<workItem from="1551295665994" duration="704000" />
<workItem from="1552248848133" duration="108000" />
<workItem from="1552592166048" duration="379000" />
</task>
<servers />
</component>
<component name="TestHistory">
<history-entry file="QueryChannelTest - 2019.02.26 at 19h 52m 21s.xml">
<configuration name="QueryChannelTest" configurationId="JUnit" />
</history-entry>
<history-entry file="QueryTest - 2019.02.26 at 19h 52m 32s.xml">
<configuration name="QueryTest" configurationId="JUnit" />
</history-entry>
<history-entry file="QueryChannelTest - 2019.02.26 at 19h 52m 57s.xml">
<configuration name="QueryChannelTest" configurationId="JUnit" />
</history-entry>
<history-entry file="QueryTest - 2019.02.26 at 19h 53m 12s.xml">
<configuration name="QueryTest" configurationId="JUnit" />
</history-entry>
@ -635,14 +623,23 @@
<history-entry file="QueryTest - 2019.02.27 at 20h 28m 57s.xml">
<configuration name="QueryTest" configurationId="JUnit" />
</history-entry>
<history-entry file="TestEnrollAdmin - 2019.03.14 at 20h 40m 04s.xml">
<configuration name="TestEnrollAdmin" configurationId="JUnit" />
</history-entry>
<history-entry file="QueryTest - 2019.03.14 at 20h 40m 44s.xml">
<configuration name="QueryTest" configurationId="JUnit" />
</history-entry>
<history-entry file="QueryTest - 2019.03.14 at 20h 41m 41s.xml">
<configuration name="QueryTest" configurationId="JUnit" />
</history-entry>
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="42986000" />
<option name="totallyTimeSpent" value="43473000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="2576" height="1416" extended-state="6" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.27623212" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2810016" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Designer" order="2" />
<window_info id="Image Layers" order="3" />
@ -653,7 +650,7 @@
<window_info id="Capture Tool" order="8" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.8398251" weight="0.45787832" />
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.83942765" weight="0.5210608" />
<window_info anchor="bottom" id="Debug" order="3" sideWeight="0.71510416" weight="0.3995749" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
@ -662,7 +659,7 @@
<window_info anchor="bottom" id="Messages" order="8" />
<window_info anchor="bottom" id="Database Changes" order="9" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="10" />
<window_info anchor="bottom" id="Event Log" order="11" sideWeight="0.16017488" side_tool="true" visible="true" weight="0.45787832" />
<window_info anchor="bottom" id="Event Log" order="11" sideWeight="0.16057234" side_tool="true" visible="true" weight="0.5210608" />
<window_info anchor="bottom" id="Spring" order="12" />
<window_info anchor="bottom" id="Java Enterprise" order="13" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
@ -688,7 +685,7 @@
<breakpoints>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/test/java/blockchain/query/QueryTest.java</url>
<line>35</line>
<line>37</line>
<properties />
<option name="timeStamp" value="1" />
</line-breakpoint>
@ -892,6 +889,20 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/blockchain/configuration/Config.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="575">
<caret line="37" column="64" selection-start-line="37" selection-start-column="64" selection-end-line="37" selection-end-column="64" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/test/java/blockchain/query/QueryChannelTest.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="26" column="63" selection-start-line="26" selection-start-column="63" selection-end-line="26" selection-end-column="63" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/test/java/blockchain/client/TestEnrollAdmin.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="357">
@ -927,24 +938,10 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/test/java/blockchain/query/QueryChannelTest.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="26" column="63" selection-start-line="26" selection-start-column="63" selection-end-line="26" selection-end-column="63" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/test/java/blockchain/query/QueryTest.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="306">
<caret line="28" column="42" lean-forward="true" selection-start-line="28" selection-start-column="42" selection-end-line="28" selection-end-column="42" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/java/blockchain/configuration/Config.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="201">
<caret line="36" column="31" selection-start-line="36" selection-start-column="31" selection-end-line="36" selection-end-column="31" />
<state relative-caret-position="425">
<caret line="35" column="37" selection-start-line="35" selection-start-column="37" selection-end-line="35" selection-end-column="37" />
</state>
</provider>
</entry>

Binary file not shown.

View file

@ -34,7 +34,8 @@ public class Config {
public static final String CHANNEL_NAME = "mychannel";
//public static final String CHAINCODE_NAME = "mycc";
public static final String CHAINCODE_NAME = "monnethic";
//public static final String CHAINCODE_NAME = "monnethic";
public static final String CHAINCODE_NAME = "monnethic-dev-4";
//PEER 0
public static final String ORG1_PEER_0 = "peer0.org1.example.com";

View file

@ -31,7 +31,9 @@ public class QueryTest {
ChannelClientWrapper channelClientWrapper = ChannelClientWrapper.setupChannel(fabricClientWrapper);
String[] args1 = {"a"};
//String[] args1 = {"a"};
//String[] args1 = {"chef"};
String[] args1 = {"bitman"};
Collection<ProposalResponse> responseQuery = channelClientWrapper.queryByChainCode(chaincode,"query",args1);
for(ProposalResponse pres : responseQuery){