Skip to content

Instantly share code, notes, and snippets.

View jxblum's full-sized avatar
💭
Coding like a bandit!

John Blum jxblum

💭
Coding like a bandit!
View GitHub Profile
@jxblum
jxblum / gist:570a58ccf0e4590c3a97b82901c95952
Last active May 16, 2023 05:15
Java 17, JUnit 5.9.3 and Mockito 5.3.1 mocking interface default methods does not work
/*
* Copyright 2011-Present Author or Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
private void setupCassandra(FieldValueLabelHandler fieldValueHandler) {
fieldValueHandler.addMapping(FieldType.COMPONENT, "Annotation", "configuration");
fieldValueHandler.addMapping(FieldType.COMPONENT, "ApacheGeode", "api");
fieldValueHandler.addMapping(FieldType.COMPONENT, "ApacheShiro", "security");
fieldValueHandler.addMapping(FieldType.COMPONENT, "API", "api");
fieldValueHandler.addMapping(FieldType.COMPONENT, "AsyncEventQueue", "aeq");
fieldValueHandler.addMapping(FieldType.COMPONENT, "Authentication", "security");
fieldValueHandler.addMapping(FieldType.COMPONENT, "Build", "build");
fieldValueHandler.addMapping(FieldType.COMPONENT, "Caching", "core");
fieldValueHandler.addMapping(FieldType.COMPONENT, "client/server", "infrastructure");
@jxblum
jxblum / ClientClusterIntegrationTests.java
Created April 10, 2020 17:46
Writing Client to Geode Cluster Integrating Tests
/*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jxblum
jxblum / ApplicationContextBeanOrderingIntegrationTests.java
Created April 4, 2020 19:59
Bean and Bean Name ordering following the @order annotation and Ordered Interface test class.
/*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jxblum
jxblum / GemfireConfiguration.java
Created November 6, 2017 22:37
GemFire configuration using SDG Annotation-based configuration.
package io.pivotal.config;
import java.util.Properties;
import org.apache.geode.pdx.ReflectionBasedAutoSerializer;
import org.springframework.cloud.Cloud;
import org.springframework.cloud.CloudFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.data.gemfire.cache.config.EnableGemfireCaching;
import org.springframework.data.gemfire.config.annotation.ClientCacheApplication;