datetime = datetime.minusDays(i);
nicolinve.setOpenTime(datetime.toDate());
nicolinve.setLink(new Link("http://ryu22e.org/" + i));
Key key = Datastore.put(nicolinve);
testDataKeys.add(key);
NicoliveIndex nicoliveIndex1 = new NicoliveIndex();
nicoliveIndex1.setKeyword("テスト");
nicoliveIndex1.setNicoliveKey(key);
NicoliveIndex nicoliveIndex2 = new NicoliveIndex();
nicoliveIndex2.setKeyword("説明");
nicoliveIndex2.setNicoliveKey(key);
NicoliveIndex nicoliveIndex3 = new NicoliveIndex();
nicoliveIndex3.setKeyword("文");
nicoliveIndex3.setNicoliveKey(key);
testDataKeys.addAll(Datastore.put(
nicoliveIndex1,
nicoliveIndex2,
nicoliveIndex3));
}
Nicolive nicolive = new Nicolive();
nicolive.setTitle("テスト");
nicolive.setDescription(new Text("テスト"));
DateTime datetime = new DateTime(2011, 1, 1, 0, 0, 0, 0);
nicolive.setOpenTime(datetime.toDate());
nicolive.setLink(new Link("http://ryu22e.org/"));
testDataKeys.add(Datastore.put(nicolive));
NicoliveIndex nicoliveIndex = new NicoliveIndex();
nicoliveIndex.setKeyword("テスト");
nicoliveIndex.setNicoliveKey(nicolive.getKey());
testDataKeys.add(Datastore.put(nicoliveIndex));
}