mboudreau/Alternator — pull request #76 by miclefebvre (2013-09-11 15:07:54+00:00)
Title: UpdateItem with version attribute not working

updateItem only verified if the expectedAttribute was null or empty when the item wasn't in the database. But the java client add version: valueExists=False when the version field is used.

Now if expectedAttribute s not empty, it validates that it contains only valueExists=false for all fields..

Refactor to use validatedExpected() everywhere instead of doing the same code again and again.