-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from paulsmelser/bug/serialization_for_dates_n…
…ot_working Bug: Serialization for dates not working
- Loading branch information
Showing
7 changed files
with
112 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/test/java/org/springframework/social/partnercenter/test/stubs/StubURI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.springframework.social.partnercenter.test.stubs; | ||
|
||
import java.net.URI; | ||
|
||
import org.springframework.web.util.UriComponentsBuilder; | ||
|
||
public class StubURI { | ||
|
||
private static final String HOST_URI = "http://localhost"; | ||
|
||
public static URI baseURI(int port) { | ||
return UriComponentsBuilder | ||
.fromUriString(HOST_URI) | ||
.port(port) | ||
.build() | ||
.toUri(); | ||
} | ||
|
||
public static URI baseURI(int port, String... pathSegments) { | ||
return UriComponentsBuilder.fromUriString(HOST_URI) | ||
.port(port) | ||
.pathSegment(pathSegments) | ||
.build() | ||
.toUri(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"id":"6C36999D-F573-408D-A463-ED9EAC6319E1","offerId":"MS-AZR-0146P","offerName":"Microsoft Azure","friendlyName":"Pay As You Go","quantity":20,"unitType":"Usage-based","hasPurchasableAddons":false,"creationDate":"2017-10-04T09:40:28.773Z","effectiveStartDate":"2017-10-04T00:00:00Z","commitmentEndDate":"9999-12-04T00:00:00Z","status":"active","autoRenewEnabled":false,"isTrial":false,"billingType":"usage","billingCycle":"monthly","actions":["Cancel","Edit"],"contractType":"subscription","links":{"offer":{"uri":"/offers/MS-AZR-0146P?country=US","method":"GET","headers":[]},"self":{"uri":"/customers/cec7381b-58d1-455d-b516-134caf447ffa/subscriptions/6C36999D-F573-408D-A463-ED9EAC6319E1","method":"GET","headers":[]}},"orderId":"7CB5E7EA-F17F-4C77-BD7C-6417B7A90CCC","attributes":{"etag":"eyJpZCI6IjZjMzY5OTlkLWY1NzMtNDA4ZC1hNDYzLWVkOWVhYzYzMTllMSIsInZlcnNpb24iOjJ9","objectType":"Subscription"}} | ||
{"id":"6C36999D-F573-408D-A463-ED9EAC6319E1","offerId":"MS-AZR-0146P","offerName":"Microsoft Azure","friendlyName":"Pay As You Go","quantity":20,"unitType":"Usage-based","hasPurchasableAddons":false,"creationDate":"2017-10-04T09:40:28.773Z","effectiveStartDate":"2017-10-04T00:00:00Z","commitmentEndDate":"9999-12-04T00:00:00Z","status":"active","autoRenewEnabled":false,"isTrial":false,"billingType":"usage","billingCycle":"monthly","contractType":"subscription","links":{"offer":{"uri":"/offers/MS-AZR-0146P?country=US","method":"GET","headers":[]},"self":{"uri":"/customers/cec7381b-58d1-455d-b516-134caf447ffa/subscriptions/6C36999D-F573-408D-A463-ED9EAC6319E1","method":"GET","headers":[]}},"orderId":"7CB5E7EA-F17F-4C77-BD7C-6417B7A90CCC","attributes":{"etag":"eyJpZCI6IjZjMzY5OTlkLWY1NzMtNDA4ZC1hNDYzLWVkOWVhYzYzMTllMSIsInZlcnNpb24iOjJ9","objectType":"Subscription"}} |