Skip to content

Commit ff96db4

Browse files
build: upgrade dependencies versions (#3)
1 parent 3494719 commit ff96db4

File tree

3 files changed

+90
-9
lines changed

3 files changed

+90
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
7+
### Upgraded
8+
- "Keyple Service Library" to version `2.1.4`.
9+
- "Keyple Distributed Remote Library" to version `2.2.0`.
10+
- "Keyple Distributed Local Library" to version `2.2.0`.
11+
- "Calypsonet Terminal Calypso API" to version `1.8.0`.
12+
- "Keyple Calypso Card Library" to version `2.3.4`.
713

814
## [2023-02-23]
915
### Upgraded

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ repositories {
2929
}
3030
dependencies {
3131
testImplementation("org.calypsonet.terminal:calypsonet-terminal-reader-java-api:1.2.+") { isChanging = true }
32-
implementation("org.calypsonet.terminal:calypsonet-terminal-calypso-java-api:1.6.+") { isChanging = true }
32+
implementation("org.calypsonet.terminal:calypsonet-terminal-calypso-java-api:1.8.+") { isChanging = true }
3333
testImplementation("org.eclipse.keyple:keyple-common-java-api:2.0.+") { isChanging = true }
3434
testImplementation("org.eclipse.keyple:keyple-distributed-network-java-lib:2.0.0")
35-
testImplementation("org.eclipse.keyple:keyple-distributed-local-java-lib:2.0.0")
36-
testImplementation("org.eclipse.keyple:keyple-distributed-remote-java-lib:2.1.0")
37-
testImplementation("org.eclipse.keyple:keyple-service-java-lib:2.1.3")
35+
testImplementation("org.eclipse.keyple:keyple-distributed-local-java-lib:2.2.0-SNAPSHOT") { isChanging = true }
36+
testImplementation("org.eclipse.keyple:keyple-distributed-remote-java-lib:2.2.0-SNAPSHOT") { isChanging = true }
37+
testImplementation("org.eclipse.keyple:keyple-service-java-lib:2.1.4-SNAPSHOT") { isChanging = true }
3838
testImplementation("org.eclipse.keyple:keyple-plugin-stub-java-lib:2.1.0")
39-
testImplementation("org.eclipse.keyple:keyple-card-calypso-java-lib:2.3.2") { isChanging = true }
39+
testImplementation("org.eclipse.keyple:keyple-card-calypso-java-lib:2.3.4-SNAPSHOT") { isChanging = true }
4040
testImplementation("org.eclipse.keyple:keyple-card-generic-java-lib:2.0.2")
4141
testImplementation("org.eclipse.keyple:keyple-util-java-lib:2.+") { isChanging = true }
4242
testImplementation("com.google.code.gson:gson:2.10.1")

src/test/java/org/eclipse/keyple/core/service/integration/CardSelectionManagerTest.java

Lines changed: 79 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import static org.assertj.core.api.Assertions.*;
1515

1616
import com.google.gson.JsonObject;
17+
import org.calypsonet.terminal.calypso.WriteAccessLevel;
1718
import org.calypsonet.terminal.calypso.card.CalypsoCardSelection;
1819
import org.calypsonet.terminal.reader.selection.CardSelectionManager;
1920
import org.calypsonet.terminal.reader.selection.spi.CardSelection;
@@ -54,15 +55,65 @@ public class CardSelectionManagerTest {
5455
+ " \"readMode\":\"ONE_RECORD\","
5556
+ " \"commandRef\":\"READ_RECORDS\","
5657
+ " \"le\":\"00\","
57-
+ " \"name\":\"Read Records - SFI: 1h, REC: 2, READMODE: ONE_RECORD, EXPECTEDLENGTH: 0\","
5858
+ " \"apduRequest\":{"
5959
+ " \"apdu\":\"00B2020C00\","
6060
+ " \"successfulStatusWords\":["
6161
+ " \"9000\""
6262
+ " ],"
6363
+ " \"info\":\"Read Records - SFI: 1h, REC: 2, READMODE: ONE_RECORD, EXPECTEDLENGTH: 0\""
64-
+ " },"
65-
+ " \"isCryptoServiceSynchronized\":false"
64+
+ " }"
65+
+ " }"
66+
+ " },"
67+
+ " {"
68+
+ " \"type\":\"org.eclipse.keyple.card.calypso.CmdCardReadBinary\","
69+
+ " \"data\":{"
70+
+ " \"sfi\":\"01\","
71+
+ " \"offset\":\"00\","
72+
+ " \"commandRef\":\"READ_BINARY\","
73+
+ " \"le\":\"0A\","
74+
+ " \"apduRequest\":{"
75+
+ " \"apdu\":\"00B081000A\","
76+
+ " \"successfulStatusWords\":["
77+
+ " \"9000\""
78+
+ " ],"
79+
+ " \"info\":\"Read Binary - SFI:01h, OFFSET:0, LENGTH:10\""
80+
+ " }"
81+
+ " }"
82+
+ " },"
83+
+ " {"
84+
+ " \"type\":\"org.eclipse.keyple.card.calypso.CmdCardReadRecords\","
85+
+ " \"data\":{"
86+
+ " \"sfi\":\"01\","
87+
+ " \"firstRecordNumber\":\"01\","
88+
+ " \"recordSize\":\"00\","
89+
+ " \"readMode\":\"ONE_RECORD\","
90+
+ " \"commandRef\":\"READ_RECORDS\","
91+
+ " \"le\":\"03\","
92+
+ " \"apduRequest\":{"
93+
+ " \"apdu\":\"00B2010C03\","
94+
+ " \"successfulStatusWords\":["
95+
+ " \"9000\""
96+
+ " ],"
97+
+ " \"info\":\"Read Records - SFI: 1h, REC: 1, READMODE: ONE_RECORD, EXPECTEDLENGTH: 3\""
98+
+ " }"
99+
+ " }"
100+
+ " },"
101+
+ " {"
102+
+ " \"type\":\"org.eclipse.keyple.card.calypso.CmdCardOpenSecureSession\","
103+
+ " \"data\":{"
104+
+ " \"writeAccessLevel\":\"DEBIT\","
105+
+ " \"isExtendedModeAllowed\":true,"
106+
+ " \"sfi\":\"00\","
107+
+ " \"recordNumber\":\"00\","
108+
+ " \"commandRef\":\"OPEN_SECURE_SESSION\","
109+
+ " \"le\":\"00\","
110+
+ " \"apduRequest\":{"
111+
+ " \"apdu\":\"008A0302010000\","
112+
+ " \"successfulStatusWords\":["
113+
+ " \"9000\""
114+
+ " ],"
115+
+ " \"info\":\"Open Secure Session - KEYINDEX:3, SFI:00h, REC:0 - PREOPEN\""
116+
+ " }"
66117
+ " }"
67118
+ " }"
68119
+ " ],"
@@ -113,6 +164,27 @@ public class CardSelectionManagerTest {
113164
+ " \"9000\""
114165
+ " ],"
115166
+ " \"info\":\"Read Records - SFI: 1h, REC: 2, READMODE: ONE_RECORD, EXPECTEDLENGTH: 0\""
167+
+ " },"
168+
+ " {"
169+
+ " \"apdu\":\"00B081000A\","
170+
+ " \"successfulStatusWords\":["
171+
+ " \"9000\""
172+
+ " ],"
173+
+ " \"info\":\"Read Binary - SFI:01h, OFFSET:0, LENGTH:10\""
174+
+ " },"
175+
+ " {"
176+
+ " \"apdu\":\"00B2010C03\","
177+
+ " \"successfulStatusWords\":["
178+
+ " \"9000\""
179+
+ " ],"
180+
+ " \"info\":\"Read Records - SFI: 1h, REC: 1, READMODE: ONE_RECORD, EXPECTEDLENGTH: 3\""
181+
+ " },"
182+
+ " {"
183+
+ " \"apdu\":\"008A0302010000\","
184+
+ " \"successfulStatusWords\":["
185+
+ " \"9000\""
186+
+ " ],"
187+
+ " \"info\":\"Open Secure Session - KEYINDEX:3, SFI:00h, REC:0 - PREOPEN\""
116188
+ " }"
117189
+ " ],"
118190
+ " \"stopOnUnsuccessfulStatusWord\":false"
@@ -155,7 +227,10 @@ public void setUp() {
155227
.filterByDfName(AID)
156228
.setFileControlInformation(CalypsoCardSelection.FileControlInformation.FCI)
157229
.setFileOccurrence(CalypsoCardSelection.FileOccurrence.FIRST)
158-
.prepareReadRecord(SFI, RECORD);
230+
.prepareReadRecord(SFI, RECORD)
231+
.prepareReadBinary(SFI, 0, 10)
232+
.prepareReadCounter(SFI, 1)
233+
.preparePreOpenSecureSession(WriteAccessLevel.DEBIT);
159234
CardSelection genericCardSelection =
160235
GenericExtensionService.getInstance()
161236
.createCardSelection()

0 commit comments

Comments
 (0)