Examples of UserId


Examples of com.bluetangstudio.searchcloud.client.model.UserId

        RestSearchCloudClient client = new RestSearchCloudClient(
            new DefaultHttpClientFactory(),
            URI.create("http://localhost:" + port), "apikey"
        );

        UserModelId modelId = new UserModelId(new UserId("test"), "testGetDocument");
        DocumentId docId = new DocumentId(10);
        Document document = client.getDocument(new GetDocumentRequest(modelId, docId));

        Assert.assertNotNull(document);
        Assert.assertEquals(document.getId(), docId);
View Full Code Here

Examples of com.github.hipchat.api.UserId

                }
            }

        }

        UserId from = UserId.create(fromUserId.toString(), fromName);
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
        Date date = null;
        try
        {
            date = sdf.parse(dateString);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.auctionmark.util.UserId

        }
        @Override
        protected int populateRow(Object[] row) {
            int col = 0;

            UserId u_id = this.idGenerator.next();
           
            // U_ID
            row[col++] = u_id;
            // U_RATING
            row[col++] = this.randomRating.nextInt();
View Full Code Here

Examples of edu.brown.benchmark.auctionmark.util.UserId

        }
        @Override
        protected int populateRow() {
            int col = 0;

            UserId u_id = this.idGenerator.next();
           
            // U_ID
            this.row[col++] = u_id;
            // U_RATING
            this.row[col++] = this.randomRating.nextInt();
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.user.UserId

    private void replaceUserAndBroadcastChanges(UserDetails newUserDetails, Set<GroupId> newUserGroups) {
        groups.clear();
        currentUserProperties.clear();

        UserId previousUserId = this.userId;
        this.userId = newUserDetails.getUserId();
        this.userDetails = newUserDetails;
        this.groups.addAll(newUserGroups);
        if(userId.isGuest()) {
            EventBusManager.getManager().postEvent(new UserLoggedOutEvent(previousUserId));
View Full Code Here

Examples of org.apache.agila.services.user.UserID

public class NotificationServiceImplTestCase extends TestCase{

    private NotificationServiceImpl notificationService;

    public void testCreateNew() {
        Notification notification = notificationService.createNew( new UserID( 1 ), "Hello World" );
       
        assertNotNull( "Notification should not be null.", notification );
        assertEquals( "UserID should be 1.", new UserID( 1 ), notification.getUserID() );
        assertEquals( "Message should be Hello World", "Hello World", notification.getMessage() );
        assertEquals( "Notification should be inserted into notification queue.", 1, notificationService.getForUserID( new UserID( 1 ) ).size() );
    }
View Full Code Here

Examples of org.apache.agila.services.user.UserID

    }

    public void testGet() {
        populateNotification();

        List notifications = notificationService.getForUserID( new UserID( 1 ) );
        for( Iterator iterator = notifications.iterator(); iterator.hasNext(); ) {
            Notification notification = (Notification) iterator.next();

            assertNotNull( "Notification should not be null", notification );
        }
View Full Code Here

Examples of org.apache.agila.services.user.UserID

    }

    public void testGetForUserID() {
        populateNotification();
       
        List notification1 = notificationService.getForUserID( new UserID( 1 ) );
        List notification2 = notificationService.getForUserID( new UserID( 1 ) );
       
        assertEquals( "Multiple calls to notification should produce the same result. Given that no modifications are made.", notification1, notification2 );
    }
View Full Code Here

Examples of org.apache.agila.services.user.UserID

        NotificationServiceImpl nsi = new NotificationServiceImpl();

        /*
         *  make up a user id and see if something bad happens
         */
        List l = nsi.getForUserID(new UserID(1));

        assertTrue(l != null);
        assertTrue(l.size() == 0);

        nsi.get(new NotificationID(3));
View Full Code Here

Examples of org.apache.agila.services.user.UserID

        nsi.get(new NotificationID(3));
    }

    private void populateNotification() {
        for( int i = 0; i < 10; i++ ) {
            notificationService.createNew( new UserID( 1 ), "Hello World " + i );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.