package com.example.cosmosclient; import com.example.cosmosclient.entities.Feature; import com.example.cosmosclient.entities.Group; import com.example.cosmosclient.entities.Request; import com.example.cosmosclient.entities.UserJsonforRequests; import com.example.cosmosclient.services.Notification; import com.example.cosmosclient.services.NotificationDone; import java.util.Date; import java.util.List; public class NotificationDoneTestMain { public static void main(String[] args) { NotificationDone notificationDone = new NotificationDone(); //以下の変数だけは必要 String rid = "432fde44-a965-4d1b-a83c-a28153925644"; String rUri = "http://nitta-lab-www.is.konan-u.ac.jp/cosmos/rset/groups/c824b232-2ee3-448d-97b7-eabf8ce1ffca/requests/432fde44-a965-4d1b-a83c-a28153925644"; String product = "notificaion!!!!"; int location = 205002; String gid = "c824b232-2ee3-448d-97b7-eabf8ce1ffca"; String issuerUid = "5dc6ca32-8fb9-4e2e-a8bc-6ea062a27465"; Notification notification = new Notification(new Request(rid, rUri, product, new Date(), new Date(), location, "name", false), new Group(gid, "uri", "name", "uId"), null); notification.getRequest().setIssuer(new UserJsonforRequests("name", issuerUid, "uri", "iconUri")); notificationDone.onClick(notification); } }