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
@Test | |
public void testFindLiveDataForGroup() throws Exception { | |
Set<MeasurementData> result1 = new HashSet<MeasurementData>(); | |
Set<MeasurementData> result2 = new HashSet<MeasurementData>(); | |
AgentClient mockedAgent1 = mock(AgentClient.class); | |
AgentClient mockedAgent2 = mock(AgentClient.class); | |
MeasurementAgentService mockedMeasurementService1 = mock(MeasurementAgentService.class); | |
MeasurementAgentService mockedMeasurementService2 = mock(MeasurementAgentService.class); | |
AgentManagerLocal mockedAgentManager = mock(AgentManagerLocal.class); | |
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
enum Q {a("enum Q{a(%c%s%c);Q(String t){System.out.printf(t,34,t,34);System.exit(0);}}"); | |
Q(String t){System.out.printf(t,34,t,34);System.exit(0);}} |
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
mvn versions:set versions:use-releases -DnewVersion=x.y.z -DallowSnapshots=false -DgenerateBackupPoms=false |
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
mvn install -pl B -am | |
And this will build B and the modules required by B. |
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
1. Install Scala | |
---------------- | |
Debian-based: | |
sudo aptitude install scala | |
Fedora: | |
sudo yum install scala | |
2. editor |
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
object DSLWorkshop extends App { | |
import scala.language.postfixOps // get rid of warnings | |
// FILL THE CODE HERE | |
// goal 1.0 | |
// assert(5 shouldBeLowerThan 7) | |
} |
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
object DSLWorkshop extends App { | |
import scala.language.postfixOps // get rid of warnings | |
// FILL THE CODE HERE | |
// goal 2 | |
// assert(5.should.be.lower.than (7)) | |
} |
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
object DSLWorkshop extends App { | |
import scala.language.postfixOps // get rid of warnings | |
// FILL THE CODE HERE | |
// goal 3.0 | |
// assert(5 should be lowerThan 7) | |
// goal 3.1 | |
// assert(6 * 7 should be higherThan 8 * 4) |
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
object DSLWorkshop extends App { | |
import scala.language.postfixOps // get rid of warnings | |
// FILL THE CODE HERE | |
// goal 4.1 | |
// assert(1 << 30 should be positive) | |
// goal 4.2 | |
// assert(1 << 31 should be negative) |
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
for f in $(find . -type f -name "*jar") ; do jar tf $f | grep "org.rhq" && echo -e "\nFound at $f" ; done |
OlderNewer