Skip to content

Instantly share code, notes, and snippets.

View iamsurya-dev's full-sized avatar
👋
Hello!

Surya Vijayaraghavan iamsurya-dev

👋
Hello!
View GitHub Profile
@iamsurya-dev
iamsurya-dev / metrics-table.csv
Last active April 22, 2020 15:18
Metrics Tables in Medium
term description value/example
organization The name of the organization google/facebook etc.
service Name of the service myApp
resource Name of the resource being monitored by the service. It could also simply be a method name in the application kafka/method1/database
entity Name of the attribute being operated on. It's context is defined by the resource message/schema
metricType Type of metric for easy identification gauge/meter/timer etc.
operation Defines the type of metric to use create/update/delete/count/read
status Status of the operation success/failed/delay/abort
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
@RunWith(PowerMockRunner.class)
@PrepareForTest(PeopleUtil.class)
public class PeopleTest() {
public class People {
public String getName() {
return PersonUtil.getPerson();
}
}
// Util Class that does something
public class PersonUtil {
// This is the static function that we gotta mock
https://github.com/kvsurii/Lyricsify.git