Skip to content

Commit

Permalink
Update to v4.0.5 and udpate copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed Dec 24, 2024
1 parent 9f2825f commit ccecc0a
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 24 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>us.fatehi</groupId>
<artifactId>magnetictrackparser</artifactId>
<version>4.0.4</version>
<version>4.0.5</version>
<packaging>jar</packaging>
<name>Magnetic Track Parser</name>
<description>Magnetic Track Parser is a library that can parse magnetic tracks from a
Expand Down Expand Up @@ -58,7 +58,7 @@
<dependency>
<groupId>us.fatehi</groupId>
<artifactId>creditcardnumber</artifactId>
<version>4.0.4</version>
<version>4.0.5</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.magnetictrack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.magnetictrack;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/us/fatehi/magnetictrack/BaseTrackData.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.magnetictrack;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/us/fatehi/magnetictrack/Track1FormatB.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.magnetictrack;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/us/fatehi/magnetictrack/Track2.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.magnetictrack;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/us/fatehi/magnetictrack/Track3.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.magnetictrack;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/example/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package com.example;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/example/SampleCode1.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package com.example;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.magnetictrack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.magnetictrack;
Expand Down
5 changes: 1 addition & 4 deletions src/test/java/us/fatehi/test/magnetictrack/ManyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.test.magnetictrack;
Expand All @@ -11,15 +11,12 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.nullValue;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.time.YearMonth;

import org.apache.commons.io.IOUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;

import us.fatehi.creditcardnumber.BankCard;
import us.fatehi.creditcardnumber.CardBrand;
import us.fatehi.magnetictrack.BankCardMagneticTrack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.test.magnetictrack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.test.magnetictrack;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/us/fatehi/test/magnetictrack/Track2Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.test.magnetictrack;
Expand Down
10 changes: 5 additions & 5 deletions src/test/java/us/fatehi/test/magnetictrack/Track3Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Magnetic Track Parser
* https://github.com/sualeh/magnetictrackparser
* Copyright (c) 2014-2024, Sualeh Fatehi.
* Copyright (c) 2014-2025, Sualeh Fatehi.
*
*/
package us.fatehi.test.magnetictrack;
Expand All @@ -18,23 +18,23 @@ public class Track3Test {

@Test
public void track3__1() {
final String track3Data = "+6202408082356005=15046200000010000000000004976?";
final String track3Data = "+6202508082356005=15046200000010000000000004976?";
final Track3 track3 = Track3.from(track3Data);
checkCardData(track3);
}

@Test
public void track3__2() {
final String track3Data =
"%B378578692630345^ / ^1508121140165241?;378578692630345=150812114016524100000?+6202408082356005=15046200000010000000000004976?";
"%B378578692630345^ / ^1508121140165241?;378578692630345=150812114016524100000?+6202508082356005=15046200000010000000000004976?";
final Track3 track3 = Track3.from(track3Data);
checkCardData(track3);
}

private void checkCardData(final Track3 track3) {
assertThat(track3.getRawData(), is("+6202408082356005=15046200000010000000000004976?"));
assertThat(track3.getRawData(), is("+6202508082356005=15046200000010000000000004976?"));
assertThat(track3.toString(), is(track3.getRawData()));
assertThat(track3.getDiscretionaryData(), is("6202408082356005=15046200000010000000000004976"));
assertThat(track3.getDiscretionaryData(), is("6202508082356005=15046200000010000000000004976"));
assertThat(track3.exceedsMaximumLength(), is(false));
}
}

0 comments on commit ccecc0a

Please sign in to comment.