Package com.springsource.insight.intercept.operation

Examples of com.springsource.insight.intercept.operation.Operation


        AbstractRedisCollection<String> collection = new DummyAbstractRedisCollection<String>();
        collection.add(value);

        standardAsserts(method);
        Operation op = standardAsserts(method);
        collectionAsserts(op, method, value);
    }
View Full Code Here


        List<String> list = new ArrayList<String>();
        list.add(value);
        collection.addAll(list);

        standardAsserts(method);
        Operation op = standardAsserts(method);
        collectionSizeAsserts(op, method, 1);
    }
View Full Code Here

        AbstractRedisCollection<String> collection = new DummyAbstractRedisCollection<String>();
        collection.remove(value);

        standardAsserts(method);
        Operation op = standardAsserts(method);
        collectionAsserts(op, method, value);
    }
View Full Code Here

        List<String> list = new ArrayList<String>();
        list.add(value);
        collection.removeAll(list);

        standardAsserts(method);
        Operation op = standardAsserts(method);
        collectionSizeAsserts(op, method, 1);
    }
View Full Code Here

    public OperationCollectionAspectSupport getAspect() {
        return RedisCollectionOperationAspect.aspectOf();
    }

    private Operation standardAsserts(String method) {
        Operation op = getLastEntered();
        assertEquals("RedisCollection: ?." + method + "()", op.getLabel());
        assertEquals(OperationType.valueOf("default-redis-collection"), op.getType());
        return op;
    }
View Full Code Here

        String key = "key1";
        String value = "value1";

        new DummyRedisMapImpl<String, String>().put(key, value);

        Operation op = standardAsserts(method);
        mapEntrysetAsserts(op, method, key, value);
    }
View Full Code Here

        String key = "key2";
        String value = "value2";

        new DummyRedisMapImpl<String, String>().putIfAbsent(key, value);
        standardAsserts(method);
        Operation op = standardAsserts(method);
        mapEntrysetAsserts(op, method, key, value);
    }
View Full Code Here

        String value = "value3";

        Map<String, String> testMap = new HashMap<String, String>();
        testMap.put(key, value);
        new DummyRedisMapImpl<String, String>().putAll(testMap);
        Operation op = standardAsserts(method);
        mapSizeAsserts(op, method, 1);
    }
View Full Code Here

        RedisMap<String, String> map = new DummyRedisMapImpl<String, String>();
        map.get(key);

        standardAsserts(method);
        Operation op = standardAsserts(method);
        mapKeyAsserts(op, method, key);
    }
View Full Code Here

        RedisMap<String, String> map = new DummyRedisMapImpl<String, String>();
        map.replace(key, value, newValue);

        standardAsserts(method);
        Operation op = standardAsserts(method);
        mapEntrysetAsserts(op, method, key, value);
    }
View Full Code Here

TOP

Related Classes of com.springsource.insight.intercept.operation.Operation

Copyright © 2018 www.massapicom. 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.