Package org.axonframework.eventhandling

Examples of org.axonframework.eventhandling.ClassNamePatternClusterSelector.selectCluster()


    public void testMatchesPattern() throws Exception {
        Cluster cluster = mock(Cluster.class);
        Pattern pattern = Pattern.compile("org\\.axonframework.*\\$1");
        ClassNamePatternClusterSelector testSubject = new ClassNamePatternClusterSelector(pattern, cluster);

        Cluster actual = testSubject.selectCluster(new EventListener() {
            @Override
            public void handle(EventMessage event) {
            }
        });
        assertSame(cluster, actual);
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.