commercetools / sphere-play-sdk

Java API client and helper classes for building a SPHERE.IO shop on Play 2.2
http://sphere.io
7 stars 6 forks source link

Make cartUpdates testable #124

Closed ahalberkamp closed 9 years ago

ahalberkamp commented 9 years ago

Hi,

I have to test the method "AddItem" of the new Wishlist service. This method creates a "Cartupdate" which is sended to sphere sdk. For testing, I wanted to inspect the actions, which was added to the cartupdate. But this is not possible, because there aren´t any public methodes to fetch the actions.

schleichardt commented 9 years ago
package io.sphere.internal.command;

public abstract class Update<A extends UpdateAction> {
    public List<A> getActions() { return actions; }
}

So if getActions would be public this would be sufficient? It is for the SDK 0.x, right?

ahalberkamp commented 9 years ago

yes, that would be sufficient for sdk 0.x (its for maximillian.it

ahalberkamp commented 9 years ago

thanks for changing the label :-)

schleichardt commented 9 years ago
libraryDependencies += "io.sphere" %% "sphere-play-sdk" % "0.68.0" withSources()