This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/kvsurii/Lyricsify.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |