Issue #1423
This commit is contained in:
parent
00b42ca5ee
commit
61b616c043
|
@ -13,7 +13,7 @@
|
||||||
<name>Jetty :: GCloud</name>
|
<name>Jetty :: GCloud</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<gcloud.version>0.9.4-beta</gcloud.version>
|
<gcloud.version>0.10.0-beta</gcloud.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
|
|
@ -80,8 +80,8 @@ public class GCloudSessionTestSupport
|
||||||
|
|
||||||
public GCloudSessionTestSupport ()
|
public GCloudSessionTestSupport ()
|
||||||
{
|
{
|
||||||
DatastoreOptions options = _helper.options();
|
DatastoreOptions options = _helper.getOptions();
|
||||||
_ds = options.service();
|
_ds = options.getService();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ public class GCloudSessionTestSupport
|
||||||
public Set<String> getSessionIds () throws Exception
|
public Set<String> getSessionIds () throws Exception
|
||||||
{
|
{
|
||||||
HashSet<String> ids = new HashSet<String>();
|
HashSet<String> ids = new HashSet<String>();
|
||||||
GqlQuery.Builder builder = Query.gqlQueryBuilder(ResultType.ENTITY, "select * from "+GCloudSessionDataStore.EntityDataModel.KIND);
|
GqlQuery.Builder builder = Query.newGqlQueryBuilder(ResultType.ENTITY, "select * from "+GCloudSessionDataStore.EntityDataModel.KIND);
|
||||||
|
|
||||||
Query<Entity> query = builder.build();
|
Query<Entity> query = builder.build();
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ public class GCloudSessionTestSupport
|
||||||
public void listSessions () throws Exception
|
public void listSessions () throws Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
GqlQuery.Builder builder = Query.gqlQueryBuilder(ResultType.ENTITY, "select * from "+GCloudSessionDataStore.EntityDataModel.KIND);
|
GqlQuery.Builder builder = Query.newGqlQueryBuilder(ResultType.ENTITY, "select * from "+GCloudSessionDataStore.EntityDataModel.KIND);
|
||||||
|
|
||||||
Query<Entity> query = builder.build();
|
Query<Entity> query = builder.build();
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ public class GCloudSessionTestSupport
|
||||||
|
|
||||||
public void assertSessions(int count) throws Exception
|
public void assertSessions(int count) throws Exception
|
||||||
{
|
{
|
||||||
Query<Key> query = Query.keyQueryBuilder().kind(GCloudSessionDataStore.EntityDataModel.KIND).build();
|
Query<Key> query = Query.newKeyQueryBuilder().setKind(GCloudSessionDataStore.EntityDataModel.KIND).build();
|
||||||
QueryResults<Key> results = _ds.run(query);
|
QueryResults<Key> results = _ds.run(query);
|
||||||
assertNotNull(results);
|
assertNotNull(results);
|
||||||
int actual = 0;
|
int actual = 0;
|
||||||
|
@ -165,7 +165,7 @@ public class GCloudSessionTestSupport
|
||||||
|
|
||||||
public void deleteSessions () throws Exception
|
public void deleteSessions () throws Exception
|
||||||
{
|
{
|
||||||
Query<Key> query = Query.keyQueryBuilder().kind(GCloudSessionDataStore.EntityDataModel.KIND).build();
|
Query<Key> query = Query.newKeyQueryBuilder().setKind(GCloudSessionDataStore.EntityDataModel.KIND).build();
|
||||||
QueryResults<Key> results = _ds.run(query);
|
QueryResults<Key> results = _ds.run(query);
|
||||||
|
|
||||||
if (results != null)
|
if (results != null)
|
||||||
|
|
Loading…
Reference in New Issue