Examples of BatchContext


Examples of com.ebuddy.cassandra.BatchContext

    }

    @Override
    public void writeElement(K rowKey, SN clusteringKey, String element, boolean isDefault) {
        Validate.notNull(clusteringKey);
        BatchContext batchContext = operations.begin();
        String propertyName = tag + element;
        operations.writeColumn(rowKey, clusteringKey, propertyName, "", batchContext);
        if (isDefault) {
            operations.writeColumn(rowKey, clusteringKey, defaultTag, element, batchContext);
        }
View Full Code Here

Examples of com.ebuddy.cassandra.BatchContext

    }

    @Override
    public void writeElement(K rowKey, SN clusteringKey, String element, boolean isDefault) {
        Validate.notNull(clusteringKey);
        BatchContext batchContext = operations.begin();
        String propertyName = tag + element;
        operations.writeColumn(rowKey, clusteringKey, propertyName, "", batchContext);
        if (isDefault) {
            operations.writeColumn(rowKey, clusteringKey, defaultTag, element, batchContext);
        }
View Full Code Here

Examples of org.wildfly.clustering.ee.BatchContext

   
    @Test
    public void requestDone() {
        SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
        Batcher<Batch> batcher = mock(Batcher.class);
        BatchContext context = mock(BatchContext.class);
        HttpServerExchange exchange = new HttpServerExchange(null);

        when(this.batch.isActive()).thenReturn(true);
        when(this.manager.getSessionManager()).thenReturn(manager);
        when(manager.getBatcher()).thenReturn(batcher);
View Full Code Here

Examples of org.wildfly.clustering.ee.BatchContext

   
    @Test
    public void getCreationTime() {
        SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
        Batcher<Batch> batcher = mock(Batcher.class);
        BatchContext context = mock(BatchContext.class);
        SessionMetaData metaData = mock(SessionMetaData.class);
        Date date = new Date();
       
        when(this.manager.getSessionManager()).thenReturn(manager);
        when(manager.getBatcher()).thenReturn(batcher);
View Full Code Here

Examples of org.wildfly.clustering.ee.BatchContext

   
    @Test
    public void getLastAccessedTime() {
        SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
        Batcher<Batch> batcher = mock(Batcher.class);
        BatchContext context = mock(BatchContext.class);
        SessionMetaData metaData = mock(SessionMetaData.class);
        Date date = new Date();
       
        when(this.manager.getSessionManager()).thenReturn(manager);
        when(manager.getBatcher()).thenReturn(batcher);
View Full Code Here

Examples of org.wildfly.clustering.ee.BatchContext

   
    @Test
    public void getMaxInactiveInterval() {
        SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
        Batcher<Batch> batcher = mock(Batcher.class);
        BatchContext context = mock(BatchContext.class);
        SessionMetaData metaData = mock(SessionMetaData.class);
        long expected = 3600L;
       
        when(this.manager.getSessionManager()).thenReturn(manager);
        when(manager.getBatcher()).thenReturn(batcher);
View Full Code Here

Examples of org.wildfly.clustering.ee.BatchContext

   
    @Test
    public void setMaxInactiveInterval() {
        SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
        Batcher<Batch> batcher = mock(Batcher.class);
        BatchContext context = mock(BatchContext.class);
        SessionMetaData metaData = mock(SessionMetaData.class);
        int interval = 3600;
       
        when(this.manager.getSessionManager()).thenReturn(manager);
        when(manager.getBatcher()).thenReturn(batcher);
View Full Code Here

Examples of org.wildfly.clustering.ee.BatchContext

   
    @Test
    public void getAttributeNames() {
        SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
        Batcher<Batch> batcher = mock(Batcher.class);
        BatchContext context = mock(BatchContext.class);
        SessionAttributes attributes = mock(SessionAttributes.class);
        Set<String> expected = Collections.singleton("name");

        when(this.session.getAttributes()).thenReturn(attributes);
        when(attributes.getAttributeNames()).thenReturn(expected);
View Full Code Here

Examples of org.wildfly.clustering.ee.BatchContext

   
    @Test
    public void getAttribute() {
        SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
        Batcher<Batch> batcher = mock(Batcher.class);
        BatchContext context = mock(BatchContext.class);
        SessionAttributes attributes = mock(SessionAttributes.class);
        String name = "name";
        Object expected = new Object();

        when(this.session.getAttributes()).thenReturn(attributes);
View Full Code Here

Examples of org.wildfly.clustering.ee.BatchContext

   
    @Test
    public void getAuthenticatedSessionAttribute() {
        SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
        Batcher<Batch> batcher = mock(Batcher.class);
        BatchContext context = mock(BatchContext.class);
        String name = CachedAuthenticatedSessionHandler.class.getName() + ".AuthenticatedSession";
        SessionAttributes attributes = mock(SessionAttributes.class);
        Account account = mock(Account.class);
       
        when(this.manager.getSessionManager()).thenReturn(manager);
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.