File tree Expand file tree Collapse file tree 8 files changed +61
-25
lines changed
main/java/com/darksci/pardot/api/parser
java/com/darksci/pardot/api/parser/list Expand file tree Collapse file tree 8 files changed +61
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : CI Test Suite
2
+
3
+ # Triggers the workflow on pull requests, manually, or pushes to master
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+ pull_request :
9
+ workflow_dispatch :
10
+
11
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
+ jobs :
13
+ # This workflow contains a single job called "build"
14
+ build :
15
+ # The type of runner that the job will run on
16
+ runs-on : ubuntu-latest
17
+
18
+ # Steps represent a sequence of tasks that will be executed as part of the job
19
+ steps :
20
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21
+ - uses : actions/checkout@v2
22
+
23
+ # # Run tests against Open JDK8
24
+ - uses : actions/setup-java@v2
25
+ with :
26
+ distribution : adopt
27
+ java-version : 8
28
+
29
+ # # Cache maven dependencies
30
+ - name : Cache local Maven repository
31
+ uses : actions/cache@v2
32
+ with :
33
+ path : ~/.m2/repository
34
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
35
+ restore-keys : |
36
+ ${{ runner.os }}-maven-
37
+
38
+ # # Run CheckStyle and License Header checks, compile, and install locally
39
+ - name : Run checkstyle, license check, compile and install locally
40
+ run : mvn clean install -DskipTests=true -DskipCheckStyle=false -Dmaven.javadoc.skip=true -B -V
41
+
42
+ # # Run test suite
43
+ - name : Run test suite
44
+ run : mvn test -B -DskipCheckStyle=true -Dmaven.javadoc.skip=true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
3
3
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## 4.0.1 (UNRELEASED)
6
+ #### Internal Dependency Updates
7
+ - Upgraded Jackson from version 2.11.4 to 2.13.1.
8
+
9
+
5
10
## 4.0.0 (06/03/2021)
6
11
7
12
### NOTE: Breaking Change
Original file line number Diff line number Diff line change 1
1
# Pardot Java API Client
2
2
3
- [ ![ Build Status] ( https://travis-ci.org/Crim/pardot-java-client.svg?branch=master )] ( https://travis-ci.org/Crim/pardot-java-client )
4
-
5
3
## What is it?
6
4
7
5
This library is a fluent style API client for Pardot's API (version 3 and 4).
Original file line number Diff line number Diff line change 6
6
7
7
<groupId >com.darksci</groupId >
8
8
<artifactId >pardot-api-client</artifactId >
9
- <version >4.0.0 </version >
9
+ <version >4.0.1 </version >
10
10
<packaging >jar</packaging >
11
11
12
12
<!-- Require Maven 3.5.0 -->
47
47
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
48
48
49
49
<!-- Jackson version -->
50
- <jackson .version>2.11.4 </jackson .version>
50
+ <jackson .version>2.13.1 </jackson .version>
51
51
52
52
<!-- Define which version of junit you'll be running -->
53
53
<junit .version>4.13.2</junit .version>
237
237
<version >3.0</version >
238
238
<configuration >
239
239
<header >LICENSE.txt</header >
240
- <excludes >
241
- <exclude >**/.md</exclude >
242
- <exclude >**.MD</exclude >
243
- <exclude >**/.bak</exclude >
244
- <exclude >**.yml</exclude >
245
- <exclude >**.yaml</exclude >
246
- <exclude >**.xml</exclude >
247
- <exclude >build/**</exclude >
248
- <exclude >src/test/resources/**</exclude >
249
- <exclude >src/main/resources/**</exclude >
250
- <exclude >LICENSE.txt</exclude >
251
- </excludes >
240
+ <includes >
241
+ <include >**/**.java</include >
242
+ </includes >
252
243
</configuration >
253
244
<executions >
254
245
<execution >
Original file line number Diff line number Diff line change 24
24
import com .fasterxml .jackson .databind .json .JsonMapper ;
25
25
import com .fasterxml .jackson .dataformat .xml .JacksonXmlModule ;
26
26
import com .fasterxml .jackson .dataformat .xml .XmlMapper ;
27
+ import com .fasterxml .jackson .dataformat .xml .deser .FromXmlParser ;
27
28
import com .fasterxml .jackson .datatype .joda .JodaModule ;
28
29
29
30
import java .text .SimpleDateFormat ;
@@ -66,6 +67,8 @@ public static XmlMapper newInstance() {
66
67
module .addDeserializer (ProspectCustomFieldValue .class , new ProspectCustomFieldDeserializer ());
67
68
68
69
final XmlMapper mapper = new XmlMapper (module );
70
+ // Coerce fields marked as <fieldName/> into NULL to maintain backwards compatibility.
71
+ mapper .enable (FromXmlParser .Feature .EMPTY_ELEMENT_AS_NULL );
69
72
70
73
// Configure it
71
74
mapper
Original file line number Diff line number Diff line change @@ -46,8 +46,10 @@ public void testRead() throws IOException {
46
46
assertEquals ("Has correct name" , "Stevie Only List" , list .getName ());
47
47
assertEquals ("Has correct isPublic" , false , list .getIsPublic ());
48
48
assertEquals ("Has correct isDynamic" , false , list .getIsDynamic ());
49
+ // tags like <title/> should be null
49
50
assertNull ("Has correct title" , list .getTitle ());
50
- assertNull ("Has correct description" , list .getDescription ());
51
+ // tags like <description></description> should be empty string
52
+ assertEquals ("Has correct description" , "" , list .getDescription ());
51
53
assertEquals ("Has correct isCrmVisible" , false , list .getIsCrmVisible ());
52
54
assertEquals ("Has correct createdAt" , "2017-08-11T22:03:22.000" , list .getCreatedAt ().toString ());
53
55
assertEquals ("Has correct updatedAt" , "2017-08-11T22:03:22.000" , list .getUpdatedAt ().toString ());
Original file line number Diff line number Diff line change 6
6
<is_public >false</is_public >
7
7
<is_dynamic >false</is_dynamic >
8
8
<title />
9
- <description / >
9
+ <description ></ description >
10
10
<is_crm_visible >false</is_crm_visible >
11
11
<created_at >2017-08-11 22:03:22</created_at >
12
12
<updated_at >2017-08-11 22:03:22</updated_at >
You can’t perform that action at this time.
0 commit comments