Add another test case to increase coverage

--- base/src/test/java/uk/ac/ebi/atlas/bioentity/interpro/InterProTraderIT.java
+++ base/src/test/java/uk/ac/ebi/atlas/bioentity/interpro/InterProTraderIT.java
@@ -8,6 +8,7 @@
 import javax.inject.Inject;

 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.nullValue;
 import static org.hamcrest.core.Is.is;

 @RunWith(SpringJUnit4ClassRunner.class)
@@ -32,4 +33,8 @@
         assertThat(subject.getTermName(IPR029787), is(NUCLEOTIDE_CYCLASE_DOMAIN));
     }

+    @Test
+    public void unknownTermsReturnNull() {
+        assertThat(subject.getTermName("IPRFOOBAR"), is(nullValue()));
+    }
 }

<|original_code|>
package uk.ac.ebi.atlas.bioentity.interpro;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.inject.Inject;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"/applicationContext.xml", "/solrContext.xml", "/embeddedSolrServerContext.xml", "/oracleContext.xml"})
public class InterProTraderIT {

    private static final String IPR000001 = "IPR000001";
    private static final String KRINGLE_DOMAIN = "Kringle (domain)";
    private static final String IPR029787 = "IPR029787";
    private static final String NUCLEOTIDE_CYCLASE_DOMAIN = "Nucleotide cyclase (domain)";

    @Inject
    InterProTrader subject;

    @Test
    public void hasFirstTerm() {
        assertThat(subject.getTermName(IPR000001), is(KRINGLE_DOMAIN));
    }

    @Test
    public void hasLastTerm() {
        assertThat(subject.getTermName(IPR029787), is(NUCLEOTIDE_CYCLASE_DOMAIN));
    }

}
<|edits_diff|>
--- base/src/test/java/uk/ac/ebi/atlas/bioentity/interpro/InterProTraderIT.java
+++ base/src/test/java/uk/ac/ebi/atlas/bioentity/interpro/InterProTraderIT.java
@@ -8,6 +8,7 @@
 import javax.inject.Inject;

 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.nullValue;
 import static org.hamcrest.core.Is.is;

 @RunWith(SpringJUnit4ClassRunner.class)
<|current_version|>
package uk.ac.ebi.atlas.bioentity.interpro;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.inject.Inject;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.core.Is.is;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"/applicationContext.xml", "/solrContext.xml", "/embeddedSolrServerContext.xml", "/oracleContext.xml"})
public class InterProTraderIT {

    private static final String IPR000001 = "IPR000001";
    private static final String KRINGLE_DOMAIN = "Kringle (domain)";
    private static final String IPR029787 = "IPR029787";
    private static final String NUCLEOTIDE_CYCLASE_DOMAIN = "Nucleotide cyclase (domain)";

    @Inject
    InterProTrader subject;

    @Test
    public void hasFirstTerm() {
        assertThat(subject.getTermName(IPR000001), is(KRINGLE_DOMAIN));
    }

    @Test
    public void hasLastTerm() {
        assertThat(subject.getTermName(IPR029787), is(NUCLEOTIDE_CYCLASE_DOMAIN));
    }

}
<|next_version|>
package uk.ac.ebi.atlas.bioentity.interpro;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.inject.Inject;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.core.Is.is;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"/applicationContext.xml", "/solrContext.xml", "/embeddedSolrServerContext.xml", "/oracleContext.xml"})
public class InterProTraderIT {

    private static final String IPR000001 = "IPR000001";
    private static final String KRINGLE_DOMAIN = "Kringle (domain)";
    private static final String IPR029787 = "IPR029787";
    private static final String NUCLEOTIDE_CYCLASE_DOMAIN = "Nucleotide cyclase (domain)";

    @Inject
    InterProTrader subject;

    @Test
    public void hasFirstTerm() {
        assertThat(subject.getTermName(IPR000001), is(KRINGLE_DOMAIN));
    }

    @Test
    public void hasLastTerm() {
        assertThat(subject.getTermName(IPR029787), is(NUCLEOTIDE_CYCLASE_DOMAIN));
    }

    @Test
    public void unknownTermsReturnNull() {
        assertThat(subject.getTermName("IPRFOOBAR"), is(nullValue()));
    }
}


Add Moxy StrategyType for showMessage

Add Moxy StrategyType for showMessage

--- app/src/main/java/com/sandrlab/listcase/presentation/repos_list/view/GitReposListView.java
+++ app/src/main/java/com/sandrlab/listcase/presentation/repos_list/view/GitReposListView.java
@@ -17,6 +17,8 @@
 import android.support.annotation.StringRes;

 import com.arellomobile.mvp.MvpView;
+import com.arellomobile.mvp.viewstate.strategy.SkipStrategy;
+import com.arellomobile.mvp.viewstate.strategy.StateStrategyType;
 import com.sandrlab.listcase.models.GitRepoModel;

 import java.util.List;
@@ -33,5 +35,7 @@
     void hideSwipeToRefreshLoading();
     void showLoading();
     void hideLoading();
+
+    @StateStrategyType(SkipStrategy.class)
     void showMessage(@StringRes int stringResId);
 }

<|original_code|>
/*
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.sandrlab.listcase.presentation.repos_list.view;

import android.support.annotation.NonNull;
import android.support.annotation.StringRes;

import com.arellomobile.mvp.MvpView;
import com.sandrlab.listcase.models.GitRepoModel;

import java.util.List;

/**
 * @author Alexander Bilchuk (a.bilchuk@sandrlab.com)
 */
public interface GitReposListView extends MvpView {

    void addTopAndroidReposListItems(@NonNull List<GitRepoModel> gitRepoModelsToAdd);
    void refreshListItems(@NonNull List<GitRepoModel> newGitRepoModels);
    void enableSwipeToRefresh();
    void disableSwipeToRefresh();
    void hideSwipeToRefreshLoading();
    void showLoading();
    void hideLoading();
    void showMessage(@StringRes int stringResId);
}

<|edits_diff|>
--- app/src/main/java/com/sandrlab/listcase/presentation/repos_list/view/GitReposListView.java
+++ app/src/main/java/com/sandrlab/listcase/presentation/repos_list/view/GitReposListView.java
@@ -17,6 +17,8 @@
 import android.support.annotation.StringRes;

 import com.arellomobile.mvp.MvpView;
+import com.arellomobile.mvp.viewstate.strategy.SkipStrategy;
+import com.arellomobile.mvp.viewstate.strategy.StateStrategyType;
 import com.sandrlab.listcase.models.GitRepoModel;

 import java.util.List;
<|current_version|>
/*
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.sandrlab.listcase.presentation.repos_list.view;

import android.support.annotation.NonNull;
import android.support.annotation.StringRes;

import com.arellomobile.mvp.MvpView;
import com.arellomobile.mvp.viewstate.strategy.SkipStrategy;
import com.arellomobile.mvp.viewstate.strategy.StateStrategyType;
import com.sandrlab.listcase.models.GitRepoModel;

import java.util.List;

/**
 * @author Alexander Bilchuk (a.bilchuk@sandrlab.com)
 */
public interface GitReposListView extends MvpView {

    void addTopAndroidReposListItems(@NonNull List<GitRepoModel> gitRepoModelsToAdd);
    void refreshListItems(@NonNull List<GitRepoModel> newGitRepoModels);
    void enableSwipeToRefresh();
    void disableSwipeToRefresh();
    void hideSwipeToRefreshLoading();
    void showLoading();
    void hideLoading();
    void showMessage(@StringRes int stringResId);
}

<|next_version|>
/*
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.sandrlab.listcase.presentation.repos_list.view;

import android.support.annotation.NonNull;
import android.support.annotation.StringRes;

import com.arellomobile.mvp.MvpView;
import com.arellomobile.mvp.viewstate.strategy.SkipStrategy;
import com.arellomobile.mvp.viewstate.strategy.StateStrategyType;
import com.sandrlab.listcase.models.GitRepoModel;

import java.util.List;

/**
 * @author Alexander Bilchuk (a.bilchuk@sandrlab.com)
 */
public interface GitReposListView extends MvpView {

    void addTopAndroidReposListItems(@NonNull List<GitRepoModel> gitRepoModelsToAdd);
    void refreshListItems(@NonNull List<GitRepoModel> newGitRepoModels);
    void enableSwipeToRefresh();
    void disableSwipeToRefresh();
    void hideSwipeToRefreshLoading();
    void showLoading();
    void hideLoading();

    @StateStrategyType(SkipStrategy.class)
    void showMessage(@StringRes int stringResId);
}


Disable native transport by default unless allowed by system property.

--- src/protocolsupport/injector/network/NettyInjector.java
+++ src/protocolsupport/injector/network/NettyInjector.java
@@ -8,10 +8,14 @@

 public class NettyInjector {

+	private static final boolean allowUseEpollChannel = Utils.getJavaPropertyValue("protocolsupport.allowepoll", false, Converter.STRING_TO_BOOLEAN);
 	private static final boolean useNonBlockingServerConnection = Utils.getJavaPropertyValue("protocolsupport.nonblockingconection", false, Converter.STRING_TO_BOOLEAN);

 	public static void inject() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
 		ServerConnection connection = MinecraftServer.getServer().getServerConnection();
+		if (!allowUseEpollChannel) {
+			MinecraftServer.getServer().getPropertyManager().setProperty("use-native-transport", false);
+		}
 		if (connection == null && useNonBlockingServerConnection) {
 			NonBlockingServerConnection.inject();
 			ProtocolSupport.logInfo("Using NonBlockingServerConnection");

<|original_code|>
package protocolsupport.injector.network;

import net.minecraft.server.v1_8_R3.MinecraftServer;
import net.minecraft.server.v1_8_R3.ServerConnection;
import protocolsupport.ProtocolSupport;
import protocolsupport.utils.Utils;
import protocolsupport.utils.Utils.Converter;

public class NettyInjector {

	private static final boolean useNonBlockingServerConnection = Utils.getJavaPropertyValue("protocolsupport.nonblockingconection", false, Converter.STRING_TO_BOOLEAN);

	public static void inject() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
		ServerConnection connection = MinecraftServer.getServer().getServerConnection();
		if (connection == null && useNonBlockingServerConnection) {
			NonBlockingServerConnection.inject();
			ProtocolSupport.logInfo("Using NonBlockingServerConnection");
		} else {
			BasicInjector.inject();
			ProtocolSupport.logInfo("Using injected ServerConnection");
		}
	}

}

<|edits_diff|>
--- src/protocolsupport/injector/network/NettyInjector.java
+++ src/protocolsupport/injector/network/NettyInjector.java
@@ -8,6 +8,7 @@

 public class NettyInjector {

+	private static final boolean allowUseEpollChannel = Utils.getJavaPropertyValue("protocolsupport.allowepoll", false, Converter.STRING_TO_BOOLEAN);
 	private static final boolean useNonBlockingServerConnection = Utils.getJavaPropertyValue("protocolsupport.nonblockingconection", false, Converter.STRING_TO_BOOLEAN);

 	public static void inject() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
<|current_version|>
package protocolsupport.injector.network;

import net.minecraft.server.v1_8_R3.MinecraftServer;
import net.minecraft.server.v1_8_R3.ServerConnection;
import protocolsupport.ProtocolSupport;
import protocolsupport.utils.Utils;
import protocolsupport.utils.Utils.Converter;

public class NettyInjector {

	private static final boolean allowUseEpollChannel = Utils.getJavaPropertyValue("protocolsupport.allowepoll", false, Converter.STRING_TO_BOOLEAN);
	private static final boolean useNonBlockingServerConnection = Utils.getJavaPropertyValue("protocolsupport.nonblockingconection", false, Converter.STRING_TO_BOOLEAN);

	public static void inject() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
		ServerConnection connection = MinecraftServer.getServer().getServerConnection();
		if (connection == null && useNonBlockingServerConnection) {
			NonBlockingServerConnection.inject();
			ProtocolSupport.logInfo("Using NonBlockingServerConnection");
		} else {
			BasicInjector.inject();
			ProtocolSupport.logInfo("Using injected ServerConnection");
		}
	}

}

<|next_version|>
package protocolsupport.injector.network;

import net.minecraft.server.v1_8_R3.MinecraftServer;
import net.minecraft.server.v1_8_R3.ServerConnection;
import protocolsupport.ProtocolSupport;
import protocolsupport.utils.Utils;
import protocolsupport.utils.Utils.Converter;

public class NettyInjector {

	private static final boolean allowUseEpollChannel = Utils.getJavaPropertyValue("protocolsupport.allowepoll", false, Converter.STRING_TO_BOOLEAN);
	private static final boolean useNonBlockingServerConnection = Utils.getJavaPropertyValue("protocolsupport.nonblockingconection", false, Converter.STRING_TO_BOOLEAN);

	public static void inject() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
		ServerConnection connection = MinecraftServer.getServer().getServerConnection();
		if (!allowUseEpollChannel) {
			MinecraftServer.getServer().getPropertyManager().setProperty("use-native-transport", false);
		}
		if (connection == null && useNonBlockingServerConnection) {
			NonBlockingServerConnection.inject();
			ProtocolSupport.logInfo("Using NonBlockingServerConnection");
		} else {
			BasicInjector.inject();
			ProtocolSupport.logInfo("Using injected ServerConnection");
		}
	}

}


Add SLOW_FALLING and TURTLE_MASTER potion types

--- src/main/java/com/laytonsmith/abstraction/enums/MCPotionType.java
+++ src/main/java/com/laytonsmith/abstraction/enums/MCPotionType.java
@@ -16,9 +16,11 @@
 	POISON,
 	REGEN,
 	SLOWNESS,
+	SLOW_FALLING,
 	SPEED,
 	STRENGTH,
 	THICK,
+	TURTLE_MASTER,
 	UNCRAFTABLE,
 	WATER,
 	WATER_BREATHING,

<|original_code|>
package com.laytonsmith.abstraction.enums;

import com.laytonsmith.annotations.MEnum;

@MEnum("PotionType")
public enum MCPotionType {
	AWKWARD,
	FIRE_RESISTANCE,
	INSTANT_DAMAGE,
	INSTANT_HEAL,
	INVISIBILITY,
	JUMP,
	LUCK,
	MUNDANE,
	NIGHT_VISION,
	POISON,
	REGEN,
	SLOWNESS,
	SPEED,
	STRENGTH,
	THICK,
	UNCRAFTABLE,
	WATER,
	WATER_BREATHING,
	WEAKNESS;
}

<|edits_diff|>
--- src/main/java/com/laytonsmith/abstraction/enums/MCPotionType.java
+++ src/main/java/com/laytonsmith/abstraction/enums/MCPotionType.java
@@ -16,6 +16,7 @@
 	POISON,
 	REGEN,
 	SLOWNESS,
+	SLOW_FALLING,
 	SPEED,
 	STRENGTH,
 	THICK,
<|current_version|>
package com.laytonsmith.abstraction.enums;

import com.laytonsmith.annotations.MEnum;

@MEnum("PotionType")
public enum MCPotionType {
	AWKWARD,
	FIRE_RESISTANCE,
	INSTANT_DAMAGE,
	INSTANT_HEAL,
	INVISIBILITY,
	JUMP,
	LUCK,
	MUNDANE,
	NIGHT_VISION,
	POISON,
	REGEN,
	SLOWNESS,
	SLOW_FALLING,
	SPEED,
	STRENGTH,
	THICK,
	UNCRAFTABLE,
	WATER,
	WATER_BREATHING,
	WEAKNESS;
}

<|next_version|>
package com.laytonsmith.abstraction.enums;

import com.laytonsmith.annotations.MEnum;

@MEnum("PotionType")
public enum MCPotionType {
	AWKWARD,
	FIRE_RESISTANCE,
	INSTANT_DAMAGE,
	INSTANT_HEAL,
	INVISIBILITY,
	JUMP,
	LUCK,
	MUNDANE,
	NIGHT_VISION,
	POISON,
	REGEN,
	SLOWNESS,
	SLOW_FALLING,
	SPEED,
	STRENGTH,
	THICK,
	TURTLE_MASTER,
	UNCRAFTABLE,
	WATER,
	WATER_BREATHING,
	WEAKNESS;
}


Make `let` declarations put their value in the local frame

--- src/main/java/org/hummingbirdlang/nodes/HBLetDeclarationNode.java
+++ src/main/java/org/hummingbirdlang/nodes/HBLetDeclarationNode.java
@@ -1,5 +1,6 @@
 package org.hummingbirdlang.nodes;

+import com.oracle.truffle.api.frame.FrameSlot;
 import com.oracle.truffle.api.frame.VirtualFrame;

 import org.hummingbirdlang.types.TypeException;
@@ -29,6 +30,9 @@

   @Override
   public Object executeGeneric(VirtualFrame frame) {
+    Object value = this.rightNode.executeGeneric(frame);
+    FrameSlot frameSlot = frame.getFrameDescriptor().findOrAddFrameSlot(this.left);
+    frame.setObject(frameSlot, value);
     return null;
   }

<|original_code|>
package org.hummingbirdlang.nodes;

import com.oracle.truffle.api.frame.VirtualFrame;

import org.hummingbirdlang.types.TypeException;
import org.hummingbirdlang.types.realize.InferenceVisitor;

public class HBLetDeclarationNode extends HBStatementNode {
  private final String left;
  @Child private HBExpressionNode rightNode;

  public HBLetDeclarationNode(String left, HBExpressionNode rightNode) {
    this.left = left;
    this.rightNode = rightNode;
  }

  public void accept(InferenceVisitor visitor) throws TypeException {
    this.rightNode.accept(visitor);
    visitor.visit(this);
  }

  public String getLeft() {
    return this.left;
  }

  public HBExpressionNode getRightNode() {
    return this.rightNode;
  }

  @Override
  public Object executeGeneric(VirtualFrame frame) {
    return null;
  }

  @Override
  public String toString() {
    return "let " + this.left + " = " + this.rightNode.toString();
  }
}

<|edits_diff|>
--- src/main/java/org/hummingbirdlang/nodes/HBLetDeclarationNode.java
+++ src/main/java/org/hummingbirdlang/nodes/HBLetDeclarationNode.java
@@ -1,5 +1,6 @@
 package org.hummingbirdlang.nodes;

+import com.oracle.truffle.api.frame.FrameSlot;
 import com.oracle.truffle.api.frame.VirtualFrame;

 import org.hummingbirdlang.types.TypeException;
<|current_version|>
package org.hummingbirdlang.nodes;

import com.oracle.truffle.api.frame.FrameSlot;
import com.oracle.truffle.api.frame.VirtualFrame;

import org.hummingbirdlang.types.TypeException;
import org.hummingbirdlang.types.realize.InferenceVisitor;

public class HBLetDeclarationNode extends HBStatementNode {
  private final String left;
  @Child private HBExpressionNode rightNode;

  public HBLetDeclarationNode(String left, HBExpressionNode rightNode) {
    this.left = left;
    this.rightNode = rightNode;
  }

  public void accept(InferenceVisitor visitor) throws TypeException {
    this.rightNode.accept(visitor);
    visitor.visit(this);
  }

  public String getLeft() {
    return this.left;
  }

  public HBExpressionNode getRightNode() {
    return this.rightNode;
  }

  @Override
  public Object executeGeneric(VirtualFrame frame) {
    return null;
  }

  @Override
  public String toString() {
    return "let " + this.left + " = " + this.rightNode.toString();
  }
}

<|next_version|>
package org.hummingbirdlang.nodes;

import com.oracle.truffle.api.frame.FrameSlot;
import com.oracle.truffle.api.frame.VirtualFrame;

import org.hummingbirdlang.types.TypeException;
import org.hummingbirdlang.types.realize.InferenceVisitor;

public class HBLetDeclarationNode extends HBStatementNode {
  private final String left;
  @Child private HBExpressionNode rightNode;

  public HBLetDeclarationNode(String left, HBExpressionNode rightNode) {
    this.left = left;
    this.rightNode = rightNode;
  }

  public void accept(InferenceVisitor visitor) throws TypeException {
    this.rightNode.accept(visitor);
    visitor.visit(this);
  }

  public String getLeft() {
    return this.left;
  }

  public HBExpressionNode getRightNode() {
    return this.rightNode;
  }

  @Override
  public Object executeGeneric(VirtualFrame frame) {
    Object value = this.rightNode.executeGeneric(frame);
    FrameSlot frameSlot = frame.getFrameDescriptor().findOrAddFrameSlot(this.left);
    frame.setObject(frameSlot, value);
    return null;
  }

  @Override
  public String toString() {
    return "let " + this.left + " = " + this.rightNode.toString();
  }
}


Test for open github issue

Test for open github issue

--- src/test/java/com/natpryce/worktorule/issues/github/GitHubIssuesTest.java
+++ src/test/java/com/natpryce/worktorule/issues/github/GitHubIssuesTest.java
@@ -5,6 +5,7 @@
 import java.io.IOException;

 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;

 public class GitHubIssuesTest {
     GitHubIssues issues = new GitHubIssues("npryce", "worktorule");
@@ -13,4 +14,9 @@
     public void closedIssue() throws IOException {
         assertFalse(issues.isOpen("1"));
     }
+
+    @Test
+    public void openIssue() throws IOException {
+        assertTrue(issues.isOpen("2"));
+    }
 }

<|original_code|>
package com.natpryce.worktorule.issues.github;

import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertFalse;

public class GitHubIssuesTest {
    GitHubIssues issues = new GitHubIssues("npryce", "worktorule");

    @Test
    public void closedIssue() throws IOException {
        assertFalse(issues.isOpen("1"));
    }
}
<|edits_diff|>
--- src/test/java/com/natpryce/worktorule/issues/github/GitHubIssuesTest.java
+++ src/test/java/com/natpryce/worktorule/issues/github/GitHubIssuesTest.java
@@ -13,4 +13,9 @@
     public void closedIssue() throws IOException {
         assertFalse(issues.isOpen("1"));
     }
+
+    @Test
+    public void openIssue() throws IOException {
+        assertTrue(issues.isOpen("2"));
+    }
 }
<|current_version|>
package com.natpryce.worktorule.issues.github;

import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertFalse;

public class GitHubIssuesTest {
    GitHubIssues issues = new GitHubIssues("npryce", "worktorule");

    @Test
    public void closedIssue() throws IOException {
        assertFalse(issues.isOpen("1"));
    }

    @Test
    public void openIssue() throws IOException {
        assertTrue(issues.isOpen("2"));
    }
}

<|next_version|>
package com.natpryce.worktorule.issues.github;

import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

public class GitHubIssuesTest {
    GitHubIssues issues = new GitHubIssues("npryce", "worktorule");

    @Test
    public void closedIssue() throws IOException {
        assertFalse(issues.isOpen("1"));
    }

    @Test
    public void openIssue() throws IOException {
        assertTrue(issues.isOpen("2"));
    }
}


Set retrofit log level according to build config

--- app/src/main/java/fr/utc/assos/uvweb/api/UvwebProvider.java
+++ app/src/main/java/fr/utc/assos/uvweb/api/UvwebProvider.java
@@ -2,6 +2,7 @@

 import java.util.List;

+import fr.utc.assos.uvweb.BuildConfig;
 import fr.utc.assos.uvweb.model.Newsfeed;
 import fr.utc.assos.uvweb.model.UvDetail;
 import fr.utc.assos.uvweb.model.UvListItem;
@@ -11,6 +12,7 @@
 public class UvwebProvider {
     private static RestAdapter restAdapter = new RestAdapter.Builder()
             .setEndpoint("https://assos.utc.fr/uvweb")
+            .setLogLevel(BuildConfig.DEBUG ? RestAdapter.LogLevel.FULL : RestAdapter.LogLevel.NONE)
             .build();
     private static UvwebApi uvwebApi = restAdapter.create(UvwebApi.class);

<|original_code|>
package fr.utc.assos.uvweb.api;

import java.util.List;

import fr.utc.assos.uvweb.model.Newsfeed;
import fr.utc.assos.uvweb.model.UvDetail;
import fr.utc.assos.uvweb.model.UvListItem;
import retrofit.Callback;
import retrofit.RestAdapter;

public class UvwebProvider {
    private static RestAdapter restAdapter = new RestAdapter.Builder()
            .setEndpoint("https://assos.utc.fr/uvweb")
            .build();
    private static UvwebApi uvwebApi = restAdapter.create(UvwebApi.class);

    public static void getUvs(Callback<List<UvListItem>> callback) {
        uvwebApi.getUvs(callback);
    }

    public static void getNewsfeed(Callback<Newsfeed> callback) {
        uvwebApi.getNewsfeed(callback);
    }

    public static void getUvDetail(String name, Callback<UvDetail> callback) {
        uvwebApi.getUvDetail(name, callback);
    }
}

<|edits_diff|>
--- app/src/main/java/fr/utc/assos/uvweb/api/UvwebProvider.java
+++ app/src/main/java/fr/utc/assos/uvweb/api/UvwebProvider.java
@@ -2,6 +2,7 @@

 import java.util.List;

+import fr.utc.assos.uvweb.BuildConfig;
 import fr.utc.assos.uvweb.model.Newsfeed;
 import fr.utc.assos.uvweb.model.UvDetail;
 import fr.utc.assos.uvweb.model.UvListItem;
<|current_version|>
package fr.utc.assos.uvweb.api;

import java.util.List;

import fr.utc.assos.uvweb.BuildConfig;
import fr.utc.assos.uvweb.model.Newsfeed;
import fr.utc.assos.uvweb.model.UvDetail;
import fr.utc.assos.uvweb.model.UvListItem;
import retrofit.Callback;
import retrofit.RestAdapter;

public class UvwebProvider {
    private static RestAdapter restAdapter = new RestAdapter.Builder()
            .setEndpoint("https://assos.utc.fr/uvweb")
            .build();
    private static UvwebApi uvwebApi = restAdapter.create(UvwebApi.class);

    public static void getUvs(Callback<List<UvListItem>> callback) {
        uvwebApi.getUvs(callback);
    }

    public static void getNewsfeed(Callback<Newsfeed> callback) {
        uvwebApi.getNewsfeed(callback);
    }

    public static void getUvDetail(String name, Callback<UvDetail> callback) {
        uvwebApi.getUvDetail(name, callback);
    }
}

<|next_version|>
package fr.utc.assos.uvweb.api;

import java.util.List;

import fr.utc.assos.uvweb.BuildConfig;
import fr.utc.assos.uvweb.model.Newsfeed;
import fr.utc.assos.uvweb.model.UvDetail;
import fr.utc.assos.uvweb.model.UvListItem;
import retrofit.Callback;
import retrofit.RestAdapter;

public class UvwebProvider {
    private static RestAdapter restAdapter = new RestAdapter.Builder()
            .setEndpoint("https://assos.utc.fr/uvweb")
            .setLogLevel(BuildConfig.DEBUG ? RestAdapter.LogLevel.FULL : RestAdapter.LogLevel.NONE)
            .build();
    private static UvwebApi uvwebApi = restAdapter.create(UvwebApi.class);

    public static void getUvs(Callback<List<UvListItem>> callback) {
        uvwebApi.getUvs(callback);
    }

    public static void getNewsfeed(Callback<Newsfeed> callback) {
        uvwebApi.getNewsfeed(callback);
    }

    public static void getUvDetail(String name, Callback<UvDetail> callback) {
        uvwebApi.getUvDetail(name, callback);
    }
}


Add signature for reading one row

Add signature for reading one row

--- src/main/java/com/github/mrloyal/flatexcelmapper/FlatExcelMapper.java
+++ src/main/java/com/github/mrloyal/flatexcelmapper/FlatExcelMapper.java
@@ -1,5 +1,6 @@
 package com.github.mrloyal.flatexcelmapper;

+import org.apache.poi.xssf.usermodel.XSSFRow;
 import org.apache.poi.xssf.usermodel.XSSFSheet;

 import java.io.File;
@@ -30,4 +31,8 @@

         return object;
     }
+
+    public <T extends Object> T readRow(XSSFRow excelRow, Class<T> clazz){
+        return null;
+    }
 }

<|original_code|>
package com.github.mrloyal.flatexcelmapper;

import org.apache.poi.xssf.usermodel.XSSFSheet;

import java.io.File;
import java.util.List;

public class FlatExcelMapper {

    public <T extends Object>List<T> read(String fileName, int sheetIndex, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object>List<T> read(File file, int sheetIndex, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object>List<T> read(XSSFSheet sheet, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object> T readRow(XSSFSheet sheet, int humanReadableRow, Class<T> clazz) throws IllegalAccessException, InstantiationException {
        T object = clazz.newInstance();

        return object;
    }
}

<|edits_diff|>
--- src/main/java/com/github/mrloyal/flatexcelmapper/FlatExcelMapper.java
+++ src/main/java/com/github/mrloyal/flatexcelmapper/FlatExcelMapper.java
@@ -1,5 +1,6 @@
 package com.github.mrloyal.flatexcelmapper;

+import org.apache.poi.xssf.usermodel.XSSFRow;
 import org.apache.poi.xssf.usermodel.XSSFSheet;

 import java.io.File;
<|current_version|>
package com.github.mrloyal.flatexcelmapper;

import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;

import java.io.File;
import java.util.List;

public class FlatExcelMapper {

    public <T extends Object>List<T> read(String fileName, int sheetIndex, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object>List<T> read(File file, int sheetIndex, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object>List<T> read(XSSFSheet sheet, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object> T readRow(XSSFSheet sheet, int humanReadableRow, Class<T> clazz) throws IllegalAccessException, InstantiationException {
        T object = clazz.newInstance();

        return object;
    }
}

<|next_version|>
package com.github.mrloyal.flatexcelmapper;

import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;

import java.io.File;
import java.util.List;

public class FlatExcelMapper {

    public <T extends Object>List<T> read(String fileName, int sheetIndex, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object>List<T> read(File file, int sheetIndex, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object>List<T> read(XSSFSheet sheet, Class<T> clazz){
        List<T> list = null;

        return list;
    }

    public <T extends Object> T readRow(XSSFSheet sheet, int humanReadableRow, Class<T> clazz) throws IllegalAccessException, InstantiationException {
        T object = clazz.newInstance();

        return object;
    }

    public <T extends Object> T readRow(XSSFRow excelRow, Class<T> clazz){
        return null;
    }
}


Make GET to /renderedConfigs/{serviceId} at the Agent level not require authentication

--- BaragonAgentService/src/main/java/com/hubspot/baragon/agent/resources/RenderedConfigsResource.java
+++ BaragonAgentService/src/main/java/com/hubspot/baragon/agent/resources/RenderedConfigsResource.java
@@ -13,6 +13,7 @@

 import com.google.inject.Inject;
 import com.hubspot.baragon.agent.managers.AgentRequestManager;
+import com.hubspot.baragon.auth.NoAuth;

 @Path("/renderedConfigs")
 @Produces(MediaType.APPLICATION_JSON)
@@ -28,6 +29,7 @@
   }

   @GET
+  @NoAuth
   @Path("/{serviceId}")
   public Response getServiceId(@PathParam("serviceId") String serviceId) {
     LOG.info("Received request to view the renderedConfig of serviceId={}", serviceId);

<|original_code|>
package com.hubspot.baragon.agent.resources;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Inject;
import com.hubspot.baragon.agent.managers.AgentRequestManager;

@Path("/renderedConfigs")
@Produces(MediaType.APPLICATION_JSON)
public class RenderedConfigsResource {
  private static final Logger LOG = LoggerFactory.getLogger(RenderedConfigsResource.class);

  private final AgentRequestManager agentRequestManager;

  @Inject
  public RenderedConfigsResource(
      AgentRequestManager agentRequestManager) {
    this.agentRequestManager = agentRequestManager;
  }

  @GET
  @Path("/{serviceId}")
  public Response getServiceId(@PathParam("serviceId") String serviceId) {
    LOG.info("Received request to view the renderedConfig of serviceId={}", serviceId);
    return agentRequestManager.getRenderedConfigs(serviceId);
  }
}

<|edits_diff|>
--- BaragonAgentService/src/main/java/com/hubspot/baragon/agent/resources/RenderedConfigsResource.java
+++ BaragonAgentService/src/main/java/com/hubspot/baragon/agent/resources/RenderedConfigsResource.java
@@ -13,6 +13,7 @@

 import com.google.inject.Inject;
 import com.hubspot.baragon.agent.managers.AgentRequestManager;
+import com.hubspot.baragon.auth.NoAuth;

 @Path("/renderedConfigs")
 @Produces(MediaType.APPLICATION_JSON)
<|current_version|>
package com.hubspot.baragon.agent.resources;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Inject;
import com.hubspot.baragon.agent.managers.AgentRequestManager;
import com.hubspot.baragon.auth.NoAuth;

@Path("/renderedConfigs")
@Produces(MediaType.APPLICATION_JSON)
public class RenderedConfigsResource {
  private static final Logger LOG = LoggerFactory.getLogger(RenderedConfigsResource.class);

  private final AgentRequestManager agentRequestManager;

  @Inject
  public RenderedConfigsResource(
      AgentRequestManager agentRequestManager) {
    this.agentRequestManager = agentRequestManager;
  }

  @GET
  @Path("/{serviceId}")
  public Response getServiceId(@PathParam("serviceId") String serviceId) {
    LOG.info("Received request to view the renderedConfig of serviceId={}", serviceId);
    return agentRequestManager.getRenderedConfigs(serviceId);
  }
}

<|next_version|>
package com.hubspot.baragon.agent.resources;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Inject;
import com.hubspot.baragon.agent.managers.AgentRequestManager;
import com.hubspot.baragon.auth.NoAuth;

@Path("/renderedConfigs")
@Produces(MediaType.APPLICATION_JSON)
public class RenderedConfigsResource {
  private static final Logger LOG = LoggerFactory.getLogger(RenderedConfigsResource.class);

  private final AgentRequestManager agentRequestManager;

  @Inject
  public RenderedConfigsResource(
      AgentRequestManager agentRequestManager) {
    this.agentRequestManager = agentRequestManager;
  }

  @GET
  @NoAuth
  @Path("/{serviceId}")
  public Response getServiceId(@PathParam("serviceId") String serviceId) {
    LOG.info("Received request to view the renderedConfig of serviceId={}", serviceId);
    return agentRequestManager.getRenderedConfigs(serviceId);
  }
}


Check default country is defined before starting app.

--- app/plugins/Global.java
+++ app/plugins/Global.java
@@ -2,6 +2,7 @@

 import com.google.inject.Guice;
 import com.google.inject.Injector;
+import controllers.CountryOperations;
 import io.sphere.sdk.client.PlayJavaClient;
 import play.Application;
 import play.GlobalSettings;
@@ -12,12 +13,17 @@

     @Override
     public void onStart(final Application app) {
+        checkDefaultCountry(app);
         super.onStart(app);
         injector = createInjector(app);
     }

     protected Injector createInjector(Application app) {
         return Guice.createInjector(new ProductionModule(app));
+    }
+
+    private void checkDefaultCountry(Application app) {
+        CountryOperations.of(app.configuration()).defaultCountry();
     }

     @Override

<|original_code|>
package plugins;

import com.google.inject.Guice;
import com.google.inject.Injector;
import io.sphere.sdk.client.PlayJavaClient;
import play.Application;
import play.GlobalSettings;

public class Global extends GlobalSettings {

    private Injector injector;

    @Override
    public void onStart(final Application app) {
        super.onStart(app);
        injector = createInjector(app);
    }

    protected Injector createInjector(Application app) {
        return Guice.createInjector(new ProductionModule(app));
    }

    @Override
    public void onStop(final Application app) {
        injector.getInstance(PlayJavaClient.class).close();
        super.onStop(app);
    }

    @Override
    public <A> A getControllerInstance(final Class<A> controllerClass) throws Exception {
        return injector.getInstance(controllerClass);
    }

}

<|edits_diff|>
--- app/plugins/Global.java
+++ app/plugins/Global.java
@@ -2,6 +2,7 @@

 import com.google.inject.Guice;
 import com.google.inject.Injector;
+import controllers.CountryOperations;
 import io.sphere.sdk.client.PlayJavaClient;
 import play.Application;
 import play.GlobalSettings;
@@ -12,6 +13,7 @@

     @Override
     public void onStart(final Application app) {
+        checkDefaultCountry(app);
         super.onStart(app);
         injector = createInjector(app);
     }
<|current_version|>
package plugins;

import com.google.inject.Guice;
import com.google.inject.Injector;
import controllers.CountryOperations;
import io.sphere.sdk.client.PlayJavaClient;
import play.Application;
import play.GlobalSettings;

public class Global extends GlobalSettings {

    private Injector injector;

    @Override
    public void onStart(final Application app) {
        checkDefaultCountry(app);
        super.onStart(app);
        injector = createInjector(app);
    }

    protected Injector createInjector(Application app) {
        return Guice.createInjector(new ProductionModule(app));
    }

    @Override
    public void onStop(final Application app) {
        injector.getInstance(PlayJavaClient.class).close();
        super.onStop(app);
    }

    @Override
    public <A> A getControllerInstance(final Class<A> controllerClass) throws Exception {
        return injector.getInstance(controllerClass);
    }

}

<|next_version|>
package plugins;

import com.google.inject.Guice;
import com.google.inject.Injector;
import controllers.CountryOperations;
import io.sphere.sdk.client.PlayJavaClient;
import play.Application;
import play.GlobalSettings;

public class Global extends GlobalSettings {

    private Injector injector;

    @Override
    public void onStart(final Application app) {
        checkDefaultCountry(app);
        super.onStart(app);
        injector = createInjector(app);
    }

    protected Injector createInjector(Application app) {
        return Guice.createInjector(new ProductionModule(app));
    }

    private void checkDefaultCountry(Application app) {
        CountryOperations.of(app.configuration()).defaultCountry();
    }

    @Override
    public void onStop(final Application app) {
        injector.getInstance(PlayJavaClient.class).close();
        super.onStop(app);
    }

    @Override
    public <A> A getControllerInstance(final Class<A> controllerClass) throws Exception {
        return injector.getInstance(controllerClass);
    }

}


Reorder custom effects and conditions

Reorder custom effects and conditions

--- src/main/java/com/btk5h/skriptmirror/ParseOrderWorkarounds.java
+++ src/main/java/com/btk5h/skriptmirror/ParseOrderWorkarounds.java
@@ -11,6 +11,8 @@
 public class ParseOrderWorkarounds {
   private static String[] PARSE_ORDER = {
       "com.btk5h.skriptmirror.skript.CondExpressionStatement",
+      "com.btk5h.skriptmirror.skript.custom.effect.CustomEffect",
+      "com.btk5h.skriptmirror.skript.custom.condition.CustomCondition",
       "com.w00tmast3r.skquery.elements.conditions.CondBoolean",
       "com.pie.tlatoani.Miscellaneous.CondBoolean"
   };
@@ -20,6 +22,7 @@
         .forEach(c -> {
           ensureLast(Skript.getStatements(), c);
           ensureLast(Skript.getConditions(), c);
+          ensureLast(Skript.getEffects(), c);
         });
   }

<|original_code|>
package com.btk5h.skriptmirror;

import ch.njol.skript.Skript;
import ch.njol.skript.lang.SyntaxElement;
import ch.njol.skript.lang.SyntaxElementInfo;

import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;

public class ParseOrderWorkarounds {
  private static String[] PARSE_ORDER = {
      "com.btk5h.skriptmirror.skript.CondExpressionStatement",
      "com.w00tmast3r.skquery.elements.conditions.CondBoolean",
      "com.pie.tlatoani.Miscellaneous.CondBoolean"
  };

  public static void reorderSyntax() {
    Arrays.stream(PARSE_ORDER)
        .forEach(c -> {
          ensureLast(Skript.getStatements(), c);
          ensureLast(Skript.getConditions(), c);
        });
  }

  private static <E extends SyntaxElement> void ensureLast(Collection<SyntaxElementInfo<? extends E>> elements,
                                                           String element) {
    Optional<SyntaxElementInfo<? extends E>> optionalElementInfo = elements.stream()
        .filter(info -> info.c.getName().equals(element))
        .findFirst();

    optionalElementInfo.ifPresent(elementInfo -> {
      elements.remove(elementInfo);
      elements.add(elementInfo);
    });
  }
}

<|edits_diff|>
--- src/main/java/com/btk5h/skriptmirror/ParseOrderWorkarounds.java
+++ src/main/java/com/btk5h/skriptmirror/ParseOrderWorkarounds.java
@@ -11,6 +11,8 @@
 public class ParseOrderWorkarounds {
   private static String[] PARSE_ORDER = {
       "com.btk5h.skriptmirror.skript.CondExpressionStatement",
+      "com.btk5h.skriptmirror.skript.custom.effect.CustomEffect",
+      "com.btk5h.skriptmirror.skript.custom.condition.CustomCondition",
       "com.w00tmast3r.skquery.elements.conditions.CondBoolean",
       "com.pie.tlatoani.Miscellaneous.CondBoolean"
   };
<|current_version|>
package com.btk5h.skriptmirror;

import ch.njol.skript.Skript;
import ch.njol.skript.lang.SyntaxElement;
import ch.njol.skript.lang.SyntaxElementInfo;

import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;

public class ParseOrderWorkarounds {
  private static String[] PARSE_ORDER = {
      "com.btk5h.skriptmirror.skript.CondExpressionStatement",
      "com.btk5h.skriptmirror.skript.custom.effect.CustomEffect",
      "com.btk5h.skriptmirror.skript.custom.condition.CustomCondition",
      "com.w00tmast3r.skquery.elements.conditions.CondBoolean",
      "com.pie.tlatoani.Miscellaneous.CondBoolean"
  };

  public static void reorderSyntax() {
    Arrays.stream(PARSE_ORDER)
        .forEach(c -> {
          ensureLast(Skript.getStatements(), c);
          ensureLast(Skript.getConditions(), c);
        });
  }

  private static <E extends SyntaxElement> void ensureLast(Collection<SyntaxElementInfo<? extends E>> elements,
                                                           String element) {
    Optional<SyntaxElementInfo<? extends E>> optionalElementInfo = elements.stream()
        .filter(info -> info.c.getName().equals(element))
        .findFirst();

    optionalElementInfo.ifPresent(elementInfo -> {
      elements.remove(elementInfo);
      elements.add(elementInfo);
    });
  }
}

<|next_version|>
package com.btk5h.skriptmirror;

import ch.njol.skript.Skript;
import ch.njol.skript.lang.SyntaxElement;
import ch.njol.skript.lang.SyntaxElementInfo;

import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;

public class ParseOrderWorkarounds {
  private static String[] PARSE_ORDER = {
      "com.btk5h.skriptmirror.skript.CondExpressionStatement",
      "com.btk5h.skriptmirror.skript.custom.effect.CustomEffect",
      "com.btk5h.skriptmirror.skript.custom.condition.CustomCondition",
      "com.w00tmast3r.skquery.elements.conditions.CondBoolean",
      "com.pie.tlatoani.Miscellaneous.CondBoolean"
  };

  public static void reorderSyntax() {
    Arrays.stream(PARSE_ORDER)
        .forEach(c -> {
          ensureLast(Skript.getStatements(), c);
          ensureLast(Skript.getConditions(), c);
          ensureLast(Skript.getEffects(), c);
        });
  }

  private static <E extends SyntaxElement> void ensureLast(Collection<SyntaxElementInfo<? extends E>> elements,
                                                           String element) {
    Optional<SyntaxElementInfo<? extends E>> optionalElementInfo = elements.stream()
        .filter(info -> info.c.getName().equals(element))
        .findFirst();

    optionalElementInfo.ifPresent(elementInfo -> {
      elements.remove(elementInfo);
      elements.add(elementInfo);
    });
  }
}


Fix issue with DatePicker rotation in FROYO/GINGERBREAD

--- src/com/googlecode/networklog/DatePickerFragment.java
+++ src/com/googlecode/networklog/DatePickerFragment.java
@@ -10,6 +10,8 @@
 import android.app.Dialog;
 import android.os.Bundle;

+import java.util.Calendar;
+
 import android.support.v4.app.DialogFragment;

 public class DatePickerFragment extends DialogFragment {
@@ -19,6 +21,10 @@
   DatePickerDialog.OnDateSetListener listener;

   public DatePickerFragment() {
+    Calendar cal = Calendar.getInstance();
+    this.year = cal.get(Calendar.YEAR);
+    this.month = cal.get(Calendar.MONTH);
+    this.day = cal.get(Calendar.DAY_OF_MONTH);
   }

   public DatePickerFragment(int year, int month, int day, DatePickerDialog.OnDateSetListener listener) {

<|original_code|>
/* (C) 2012 Pragmatic Software
   This Source Code Form is subject to the terms of the Mozilla Public
   License, v. 2.0. If a copy of the MPL was not distributed with this
   file, You can obtain one at http://mozilla.org/MPL/2.0/
   */

package com.googlecode.networklog;

import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;

import android.support.v4.app.DialogFragment;

public class DatePickerFragment extends DialogFragment {
  int year;
  int month;
  int day;
  DatePickerDialog.OnDateSetListener listener;

  public DatePickerFragment() {
  }

  public DatePickerFragment(int year, int month, int day, DatePickerDialog.OnDateSetListener listener) {
    this(year, month, day);
    this.listener = listener;
  }

  public DatePickerFragment(int year, int month, int day) {
    this.year = year;
    this.month = month;
    this.day = day;
  }

  public void setListener(DatePickerDialog.OnDateSetListener listener) {
    this.listener = listener;
  }

  @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
      return new DatePickerDialog(getActivity(), this.listener, this.year, this.month, this.day);
    }
}

<|edits_diff|>
--- src/com/googlecode/networklog/DatePickerFragment.java
+++ src/com/googlecode/networklog/DatePickerFragment.java
@@ -9,6 +9,8 @@
 import android.app.DatePickerDialog;
 import android.app.Dialog;
 import android.os.Bundle;
+
+import java.util.Calendar;

 import android.support.v4.app.DialogFragment;

<|current_version|>
/* (C) 2012 Pragmatic Software
   This Source Code Form is subject to the terms of the Mozilla Public
   License, v. 2.0. If a copy of the MPL was not distributed with this
   file, You can obtain one at http://mozilla.org/MPL/2.0/
   */

package com.googlecode.networklog;

import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;

import java.util.Calendar;

import android.support.v4.app.DialogFragment;

public class DatePickerFragment extends DialogFragment {
  int year;
  int month;
  int day;
  DatePickerDialog.OnDateSetListener listener;

  public DatePickerFragment() {
  }

  public DatePickerFragment(int year, int month, int day, DatePickerDialog.OnDateSetListener listener) {
    this(year, month, day);
    this.listener = listener;
  }

  public DatePickerFragment(int year, int month, int day) {
    this.year = year;
    this.month = month;
    this.day = day;
  }

  public void setListener(DatePickerDialog.OnDateSetListener listener) {
    this.listener = listener;
  }

  @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
      return new DatePickerDialog(getActivity(), this.listener, this.year, this.month, this.day);
    }
}

<|next_version|>
/* (C) 2012 Pragmatic Software
   This Source Code Form is subject to the terms of the Mozilla Public
   License, v. 2.0. If a copy of the MPL was not distributed with this
   file, You can obtain one at http://mozilla.org/MPL/2.0/
   */

package com.googlecode.networklog;

import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;

import java.util.Calendar;

import android.support.v4.app.DialogFragment;

public class DatePickerFragment extends DialogFragment {
  int year;
  int month;
  int day;
  DatePickerDialog.OnDateSetListener listener;

  public DatePickerFragment() {
    Calendar cal = Calendar.getInstance();
    this.year = cal.get(Calendar.YEAR);
    this.month = cal.get(Calendar.MONTH);
    this.day = cal.get(Calendar.DAY_OF_MONTH);
  }

  public DatePickerFragment(int year, int month, int day, DatePickerDialog.OnDateSetListener listener) {
    this(year, month, day);
    this.listener = listener;
  }

  public DatePickerFragment(int year, int month, int day) {
    this.year = year;
    this.month = month;
    this.day = day;
  }

  public void setListener(DatePickerDialog.OnDateSetListener listener) {
    this.listener = listener;
  }

  @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
      return new DatePickerDialog(getActivity(), this.listener, this.year, this.month, this.day);
    }
}


Save Structurizr workspaces to a persistent directory.

--- structurizr-examples/src/com/structurizr/example/structurizr/UploadToStructurizr.java
+++ structurizr-examples/src/com/structurizr/example/structurizr/UploadToStructurizr.java
@@ -2,6 +2,8 @@

 import com.structurizr.Workspace;
 import com.structurizr.api.StructurizrClient;
+
+import java.io.File;

 public class UploadToStructurizr extends AbstractStructurizrWorkspace {

@@ -12,6 +14,7 @@
     void run() throws Exception {
         Workspace workspace = readFromFile();
         StructurizrClient structurizrClient = new StructurizrClient();
+        structurizrClient.setWorkspaceArchiveLocation(new File(System.getProperty("user.home"), "structurizr-workspaces"));
         structurizrClient.mergeWorkspace(121, workspace);
     }

<|original_code|>
package com.structurizr.example.structurizr;

import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;

public class UploadToStructurizr extends AbstractStructurizrWorkspace {

    public static void main(String[] args) throws Exception {
        new UploadToStructurizr().run();
    }

    void run() throws Exception {
        Workspace workspace = readFromFile();
        StructurizrClient structurizrClient = new StructurizrClient();
        structurizrClient.mergeWorkspace(121, workspace);
    }

}
<|edits_diff|>
--- structurizr-examples/src/com/structurizr/example/structurizr/UploadToStructurizr.java
+++ structurizr-examples/src/com/structurizr/example/structurizr/UploadToStructurizr.java
@@ -2,6 +2,8 @@

 import com.structurizr.Workspace;
 import com.structurizr.api.StructurizrClient;
+
+import java.io.File;

 public class UploadToStructurizr extends AbstractStructurizrWorkspace {

<|current_version|>
package com.structurizr.example.structurizr;

import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;

import java.io.File;

public class UploadToStructurizr extends AbstractStructurizrWorkspace {

    public static void main(String[] args) throws Exception {
        new UploadToStructurizr().run();
    }

    void run() throws Exception {
        Workspace workspace = readFromFile();
        StructurizrClient structurizrClient = new StructurizrClient();
        structurizrClient.mergeWorkspace(121, workspace);
    }

}
<|next_version|>
package com.structurizr.example.structurizr;

import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;

import java.io.File;

public class UploadToStructurizr extends AbstractStructurizrWorkspace {

    public static void main(String[] args) throws Exception {
        new UploadToStructurizr().run();
    }

    void run() throws Exception {
        Workspace workspace = readFromFile();
        StructurizrClient structurizrClient = new StructurizrClient();
        structurizrClient.setWorkspaceArchiveLocation(new File(System.getProperty("user.home"), "structurizr-workspaces"));
        structurizrClient.mergeWorkspace(121, workspace);
    }

}


Add tags to InstanceInjector example

Add tags to InstanceInjector example

--- examples/core/advanced-di/src/main/java/InstanceInjectorExample.java
+++ examples/core/advanced-di/src/main/java/InstanceInjectorExample.java
@@ -6,6 +6,7 @@

 @SuppressWarnings("FinalClass")
 public final class InstanceInjectorExample extends Launcher {
+	//[START REGION_1]
 	@Inject
 	String message;

@@ -23,12 +24,15 @@
 		Launcher launcher = new InstanceInjectorExample();
 		launcher.launch(args);
 	}
+	//[END REGION_1]

 	// internal job of post-creation objects inject.
+	//[START REGION_2]
 	private void postInjectInstances(String [] args) {
 		Injector injector = this.createInjector(args);
 		InstanceInjector<Launcher> instanceInjector = injector.getInstanceInjector(Launcher.class);
 		instanceInjector.injectInto(this);
 	}
+	//[END REGION_2]

 }

<|original_code|>
import io.datakernel.di.annotation.Inject;
import io.datakernel.di.annotation.Provides;
import io.datakernel.di.core.Injector;
import io.datakernel.di.core.InstanceInjector;
import io.datakernel.launcher.Launcher;

@SuppressWarnings("FinalClass")
public final class InstanceInjectorExample extends Launcher {
	@Inject
	String message;

	@Provides
	String message() {
		return "Hello, world!";
	}

	@Override
	protected void run() {
		System.out.println(message);
	}

	public static void main(String[] args) throws Exception {
		Launcher launcher = new InstanceInjectorExample();
		launcher.launch(args);
	}

	// internal job of post-creation objects inject.
	private void postInjectInstances(String [] args) {
		Injector injector = this.createInjector(args);
		InstanceInjector<Launcher> instanceInjector = injector.getInstanceInjector(Launcher.class);
		instanceInjector.injectInto(this);
	}

}

<|edits_diff|>
--- examples/core/advanced-di/src/main/java/InstanceInjectorExample.java
+++ examples/core/advanced-di/src/main/java/InstanceInjectorExample.java
@@ -6,6 +6,7 @@

 @SuppressWarnings("FinalClass")
 public final class InstanceInjectorExample extends Launcher {
+	//[START REGION_1]
 	@Inject
 	String message;

@@ -23,8 +24,10 @@
 		Launcher launcher = new InstanceInjectorExample();
 		launcher.launch(args);
 	}
+	//[END REGION_1]

 	// internal job of post-creation objects inject.
+	//[START REGION_2]
 	private void postInjectInstances(String [] args) {
 		Injector injector = this.createInjector(args);
 		InstanceInjector<Launcher> instanceInjector = injector.getInstanceInjector(Launcher.class);
<|current_version|>
import io.datakernel.di.annotation.Inject;
import io.datakernel.di.annotation.Provides;
import io.datakernel.di.core.Injector;
import io.datakernel.di.core.InstanceInjector;
import io.datakernel.launcher.Launcher;

@SuppressWarnings("FinalClass")
public final class InstanceInjectorExample extends Launcher {
	//[START REGION_1]
	@Inject
	String message;

	@Provides
	String message() {
		return "Hello, world!";
	}

	@Override
	protected void run() {
		System.out.println(message);
	}

	public static void main(String[] args) throws Exception {
		Launcher launcher = new InstanceInjectorExample();
		launcher.launch(args);
	}
	//[END REGION_1]

	// internal job of post-creation objects inject.
	//[START REGION_2]
	private void postInjectInstances(String [] args) {
		Injector injector = this.createInjector(args);
		InstanceInjector<Launcher> instanceInjector = injector.getInstanceInjector(Launcher.class);
		instanceInjector.injectInto(this);
	}

}

<|next_version|>
import io.datakernel.di.annotation.Inject;
import io.datakernel.di.annotation.Provides;
import io.datakernel.di.core.Injector;
import io.datakernel.di.core.InstanceInjector;
import io.datakernel.launcher.Launcher;

@SuppressWarnings("FinalClass")
public final class InstanceInjectorExample extends Launcher {
	//[START REGION_1]
	@Inject
	String message;

	@Provides
	String message() {
		return "Hello, world!";
	}

	@Override
	protected void run() {
		System.out.println(message);
	}

	public static void main(String[] args) throws Exception {
		Launcher launcher = new InstanceInjectorExample();
		launcher.launch(args);
	}
	//[END REGION_1]

	// internal job of post-creation objects inject.
	//[START REGION_2]
	private void postInjectInstances(String [] args) {
		Injector injector = this.createInjector(args);
		InstanceInjector<Launcher> instanceInjector = injector.getInstanceInjector(Launcher.class);
		instanceInjector.injectInto(this);
	}
	//[END REGION_2]

}


Document the various named methods in the presenter

--- src/main/java/com/pyamsoft/pydroid/base/Presenter.java
+++ src/main/java/com/pyamsoft/pydroid/base/Presenter.java
@@ -18,13 +18,38 @@

 public interface Presenter<I> {

+  /**
+   * Bind the View to this presenter
+   *
+   * Usually called during the onCreate/onCreateView calls
+   */
   void onCreateView(I view);

+  /**
+   * Unind the View to this presenter
+   *
+   * Usually called during the onDestroy/onDestroyView calls
+   */
   void onDestroyView();

+  /**
+   * Used for registering the presenter to various bus subscriptions
+   *
+   * Generally called during onResume
+   */
   void onResume();

+  /**
+   * Used for unregistering the presenter from various bus subscriptions
+   *
+   * Generally called during onPause
+   */
   void onPause();

+  /**
+   * Called once the presenter is finally discarded
+   *
+   * Cleans up any remaining references to data
+   */
   void onDestroy();
 }

<|original_code|>
/*
 * Copyright 2016 Peter Kenji Yamanaka
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.pyamsoft.pydroid.base;

public interface Presenter<I> {

  void onCreateView(I view);

  void onDestroyView();

  void onResume();

  void onPause();

  void onDestroy();
}

<|edits_diff|>
--- src/main/java/com/pyamsoft/pydroid/base/Presenter.java
+++ src/main/java/com/pyamsoft/pydroid/base/Presenter.java
@@ -18,12 +18,32 @@

 public interface Presenter<I> {

+  /**
+   * Bind the View to this presenter
+   *
+   * Usually called during the onCreate/onCreateView calls
+   */
   void onCreateView(I view);

+  /**
+   * Unind the View to this presenter
+   *
+   * Usually called during the onDestroy/onDestroyView calls
+   */
   void onDestroyView();

+  /**
+   * Used for registering the presenter to various bus subscriptions
+   *
+   * Generally called during onResume
+   */
   void onResume();

+  /**
+   * Used for unregistering the presenter from various bus subscriptions
+   *
+   * Generally called during onPause
+   */
   void onPause();

   void onDestroy();
<|current_version|>
/*
 * Copyright 2016 Peter Kenji Yamanaka
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.pyamsoft.pydroid.base;

public interface Presenter<I> {

  /**
   * Bind the View to this presenter
   *
   * Usually called during the onCreate/onCreateView calls
   */
  void onCreateView(I view);

  /**
   * Unind the View to this presenter
   *
   * Usually called during the onDestroy/onDestroyView calls
   */
  void onDestroyView();

  /**
   * Used for registering the presenter to various bus subscriptions
   *
   * Generally called during onResume
   */
  void onResume();

  /**
   * Used for unregistering the presenter from various bus subscriptions
   *
   * Generally called during onPause
   */
  void onPause();

  void onDestroy();
}

<|next_version|>
/*
 * Copyright 2016 Peter Kenji Yamanaka
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.pyamsoft.pydroid.base;

public interface Presenter<I> {

  /**
   * Bind the View to this presenter
   *
   * Usually called during the onCreate/onCreateView calls
   */
  void onCreateView(I view);

  /**
   * Unind the View to this presenter
   *
   * Usually called during the onDestroy/onDestroyView calls
   */
  void onDestroyView();

  /**
   * Used for registering the presenter to various bus subscriptions
   *
   * Generally called during onResume
   */
  void onResume();

  /**
   * Used for unregistering the presenter from various bus subscriptions
   *
   * Generally called during onPause
   */
  void onPause();

  /**
   * Called once the presenter is finally discarded
   *
   * Cleans up any remaining references to data
   */
  void onDestroy();
}


Initialize ghost list in GhostRespository

--- pm-server/src/main/java/com/pm/server/player/GhostRepositoryImpl.java
+++ pm-server/src/main/java/com/pm/server/player/GhostRepositoryImpl.java
@@ -1,5 +1,6 @@
 package com.pm.server.player;

+import java.util.ArrayList;
 import java.util.List;

 import org.springframework.stereotype.Repository;
@@ -8,6 +9,10 @@
 public class GhostRepositoryImpl implements GhostRepository {

 	private List<Ghost> ghosts;
+
+	GhostRepositoryImpl() {
+		ghosts = new ArrayList<Ghost>();
+	}

 	public Ghost getGhostById(Integer id) {

<|original_code|>
package com.pm.server.player;

import java.util.List;

import org.springframework.stereotype.Repository;

@Repository
public class GhostRepositoryImpl implements GhostRepository {

	private List<Ghost> ghosts;

	public Ghost getGhostById(Integer id) {

		for(Ghost ghost : ghosts) {
			if(ghost.getId() == id) {
				return ghost;
			}
		}
		return null;

	}

	public List<Ghost> getAllGhosts() {
		return ghosts;
	}

	public void addGhost(Ghost ghost) throws Exception {

		if(getGhostById(ghost.getId()) != null) {
			ghosts.add(ghost);
		}
		else {
			throw new IllegalArgumentException(
				"addGhost() was given an id belonging to a ghost which is " +
				"already in the registry."
			);
		}

	}

}
<|edits_diff|>
--- pm-server/src/main/java/com/pm/server/player/GhostRepositoryImpl.java
+++ pm-server/src/main/java/com/pm/server/player/GhostRepositoryImpl.java
@@ -1,5 +1,6 @@
 package com.pm.server.player;

+import java.util.ArrayList;
 import java.util.List;

 import org.springframework.stereotype.Repository;
<|current_version|>
package com.pm.server.player;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

@Repository
public class GhostRepositoryImpl implements GhostRepository {

	private List<Ghost> ghosts;

	public Ghost getGhostById(Integer id) {

		for(Ghost ghost : ghosts) {
			if(ghost.getId() == id) {
				return ghost;
			}
		}
		return null;

	}

	public List<Ghost> getAllGhosts() {
		return ghosts;
	}

	public void addGhost(Ghost ghost) throws Exception {

		if(getGhostById(ghost.getId()) != null) {
			ghosts.add(ghost);
		}
		else {
			throw new IllegalArgumentException(
				"addGhost() was given an id belonging to a ghost which is " +
				"already in the registry."
			);
		}

	}

}
<|next_version|>
package com.pm.server.player;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

@Repository
public class GhostRepositoryImpl implements GhostRepository {

	private List<Ghost> ghosts;

	GhostRepositoryImpl() {
		ghosts = new ArrayList<Ghost>();
	}

	public Ghost getGhostById(Integer id) {

		for(Ghost ghost : ghosts) {
			if(ghost.getId() == id) {
				return ghost;
			}
		}
		return null;

	}

	public List<Ghost> getAllGhosts() {
		return ghosts;
	}

	public void addGhost(Ghost ghost) throws Exception {

		if(getGhostById(ghost.getId()) != null) {
			ghosts.add(ghost);
		}
		else {
			throw new IllegalArgumentException(
				"addGhost() was given an id belonging to a ghost which is " +
				"already in the registry."
			);
		}

	}

}


Exclude null defaultValues from /config/context.

--- src/main/java/com/indeed/proctor/service/config/JsonContextVarConfig.java
+++ src/main/java/com/indeed/proctor/service/config/JsonContextVarConfig.java
@@ -1,4 +1,6 @@
 package com.indeed.proctor.service.config;
+
+import org.codehaus.jackson.map.annotate.JsonSerialize;

 /**
  * Context variable configuration, which also requires type conversion.
@@ -18,6 +20,7 @@
         this.type = type;
     }

+    @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
     public String getDefaultValue() {
         return defaultValue;
     }

<|original_code|>
package com.indeed.proctor.service.config;

/**
 * Context variable configuration, which also requires type conversion.
 */
public class JsonContextVarConfig extends JsonVarConfig {
    private String type;

    // If a context var is missing during extraction, we'll just use this default.
    // If null, the user did not specify a default value for this variable.
    private String defaultValue;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
}

<|edits_diff|>
--- src/main/java/com/indeed/proctor/service/config/JsonContextVarConfig.java
+++ src/main/java/com/indeed/proctor/service/config/JsonContextVarConfig.java
@@ -1,4 +1,6 @@
 package com.indeed.proctor.service.config;
+
+import org.codehaus.jackson.map.annotate.JsonSerialize;

 /**
  * Context variable configuration, which also requires type conversion.
<|current_version|>
package com.indeed.proctor.service.config;

import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * Context variable configuration, which also requires type conversion.
 */
public class JsonContextVarConfig extends JsonVarConfig {
    private String type;

    // If a context var is missing during extraction, we'll just use this default.
    // If null, the user did not specify a default value for this variable.
    private String defaultValue;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
}

<|next_version|>
package com.indeed.proctor.service.config;

import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * Context variable configuration, which also requires type conversion.
 */
public class JsonContextVarConfig extends JsonVarConfig {
    private String type;

    // If a context var is missing during extraction, we'll just use this default.
    // If null, the user did not specify a default value for this variable.
    private String defaultValue;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
}


Set ignore the starter test

[NGRINDER-710] Set ignore the starter test

--- ngrinder-starter/src/test/java/org/ngrinder/NGrinderControllerStarterTest.java
+++ ngrinder-starter/src/test/java/org/ngrinder/NGrinderControllerStarterTest.java
@@ -1,8 +1,10 @@
 package org.ngrinder;

+import org.junit.Ignore;
 import org.junit.Test;

+@Ignore
 public class NGrinderControllerStarterTest {
 	@Test
 	public void test1() throws Exception {

<|original_code|>
package org.ngrinder;

import org.junit.Test;

public class NGrinderControllerStarterTest {
	@Test
	public void test1() throws Exception {

		NGrinderControllerStarter.main(new String[]
				{
				}
		);
	}

	@Test
	public void testEasyClusterConfiguration() {
		NGrinderControllerStarter.ClusterMode.easy.parseArgs(new String[]{

				"-cluster-port=2022"
		});
	}
}

<|edits_diff|>
--- ngrinder-starter/src/test/java/org/ngrinder/NGrinderControllerStarterTest.java
+++ ngrinder-starter/src/test/java/org/ngrinder/NGrinderControllerStarterTest.java
@@ -1,6 +1,7 @@
 package org.ngrinder;

+import org.junit.Ignore;
 import org.junit.Test;

 public class NGrinderControllerStarterTest {
<|current_version|>
package org.ngrinder;

import org.junit.Ignore;
import org.junit.Test;

public class NGrinderControllerStarterTest {
	@Test
	public void test1() throws Exception {

		NGrinderControllerStarter.main(new String[]
				{
				}
		);
	}

	@Test
	public void testEasyClusterConfiguration() {
		NGrinderControllerStarter.ClusterMode.easy.parseArgs(new String[]{

				"-cluster-port=2022"
		});
	}
}

<|next_version|>
package org.ngrinder;

import org.junit.Ignore;
import org.junit.Test;

@Ignore
public class NGrinderControllerStarterTest {
	@Test
	public void test1() throws Exception {

		NGrinderControllerStarter.main(new String[]
				{
				}
		);
	}

	@Test
	public void testEasyClusterConfiguration() {
		NGrinderControllerStarter.ClusterMode.easy.parseArgs(new String[]{

				"-cluster-port=2022"
		});
	}
}


Use an exception without @ResponseStatus

--- src/main/java/com/mpalourdio/springboottemplate/service/ServiceWithProperties.java
+++ src/main/java/com/mpalourdio/springboottemplate/service/ServiceWithProperties.java
@@ -9,6 +9,7 @@

 package com.mpalourdio.springboottemplate.service;

+import com.mpalourdio.springboottemplate.exception.AnotherCustomException;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;

@@ -24,4 +25,8 @@
     public String getValueFromConfig() {
         return valueFromConfig;
     }
+
+    public void throwException() throws AnotherCustomException {
+        throw new AnotherCustomException("gosh");
+    }
 }

<|original_code|>
/*
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.mpalourdio.springboottemplate.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class ServiceWithProperties {

    private final String valueFromConfig;

    public ServiceWithProperties(@Value("${admin.username}") final String valueFromConfig) {
        this.valueFromConfig = valueFromConfig;
    }

    public String getValueFromConfig() {
        return valueFromConfig;
    }
}

<|edits_diff|>
--- src/main/java/com/mpalourdio/springboottemplate/service/ServiceWithProperties.java
+++ src/main/java/com/mpalourdio/springboottemplate/service/ServiceWithProperties.java
@@ -9,6 +9,7 @@

 package com.mpalourdio.springboottemplate.service;

+import com.mpalourdio.springboottemplate.exception.AnotherCustomException;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;

<|current_version|>
/*
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.mpalourdio.springboottemplate.service;

import com.mpalourdio.springboottemplate.exception.AnotherCustomException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class ServiceWithProperties {

    private final String valueFromConfig;

    public ServiceWithProperties(@Value("${admin.username}") final String valueFromConfig) {
        this.valueFromConfig = valueFromConfig;
    }

    public String getValueFromConfig() {
        return valueFromConfig;
    }
}

<|next_version|>
/*
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.mpalourdio.springboottemplate.service;

import com.mpalourdio.springboottemplate.exception.AnotherCustomException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class ServiceWithProperties {

    private final String valueFromConfig;

    public ServiceWithProperties(@Value("${admin.username}") final String valueFromConfig) {
        this.valueFromConfig = valueFromConfig;
    }

    public String getValueFromConfig() {
        return valueFromConfig;
    }

    public void throwException() throws AnotherCustomException {
        throw new AnotherCustomException("gosh");
    }
}


Add commentary to the constants class

Add commentary to the constants class

--- src/main/java/com/jlgm/mmdr/lib/MMDRConstants.java
+++ src/main/java/com/jlgm/mmdr/lib/MMDRConstants.java
@@ -1,11 +1,16 @@
 package com.jlgm.mmdr.lib;

 public class MMDRConstants {
+	//The name "behind the scenes"
 	public static final String MODID = "jlgm_MMDR";
+	//The public name
 	public static final String NAME = "Minecraft Modding Done Right";
+	//The version of the mod
 	public static final String VERSION = "0.1a";
+	//The Minecraft version this mod is focused to work with
 	public static final String ACCEPTEDMINECRAFTVERSIONS = "[1.10]";

+	//The package route of the proxys
 	public static final String CLIENT_PROXY = "com.jlgm.mmdr.main.ClientProxy";
 	public static final String SERVER_PROXY = "com.jlgm.mmdr.main.ServerProxy";
 }

<|original_code|>
package com.jlgm.mmdr.lib;

public class MMDRConstants {
	public static final String MODID = "jlgm_MMDR";
	public static final String NAME = "Minecraft Modding Done Right";
	public static final String VERSION = "0.1a";
	public static final String ACCEPTEDMINECRAFTVERSIONS = "[1.10]";

	public static final String CLIENT_PROXY = "com.jlgm.mmdr.main.ClientProxy";
	public static final String SERVER_PROXY = "com.jlgm.mmdr.main.ServerProxy";
}
<|edits_diff|>
--- src/main/java/com/jlgm/mmdr/lib/MMDRConstants.java
+++ src/main/java/com/jlgm/mmdr/lib/MMDRConstants.java
@@ -1,9 +1,13 @@
 package com.jlgm.mmdr.lib;

 public class MMDRConstants {
+	//The name "behind the scenes"
 	public static final String MODID = "jlgm_MMDR";
+	//The public name
 	public static final String NAME = "Minecraft Modding Done Right";
+	//The version of the mod
 	public static final String VERSION = "0.1a";
+	//The Minecraft version this mod is focused to work with
 	public static final String ACCEPTEDMINECRAFTVERSIONS = "[1.10]";

 	public static final String CLIENT_PROXY = "com.jlgm.mmdr.main.ClientProxy";
<|current_version|>
package com.jlgm.mmdr.lib;

public class MMDRConstants {
	//The name "behind the scenes"
	public static final String MODID = "jlgm_MMDR";
	//The public name
	public static final String NAME = "Minecraft Modding Done Right";
	//The version of the mod
	public static final String VERSION = "0.1a";
	//The Minecraft version this mod is focused to work with
	public static final String ACCEPTEDMINECRAFTVERSIONS = "[1.10]";

	public static final String CLIENT_PROXY = "com.jlgm.mmdr.main.ClientProxy";
	public static final String SERVER_PROXY = "com.jlgm.mmdr.main.ServerProxy";
}
<|next_version|>
package com.jlgm.mmdr.lib;

public class MMDRConstants {
	//The name "behind the scenes"
	public static final String MODID = "jlgm_MMDR";
	//The public name
	public static final String NAME = "Minecraft Modding Done Right";
	//The version of the mod
	public static final String VERSION = "0.1a";
	//The Minecraft version this mod is focused to work with
	public static final String ACCEPTEDMINECRAFTVERSIONS = "[1.10]";

	//The package route of the proxys
	public static final String CLIENT_PROXY = "com.jlgm.mmdr.main.ClientProxy";
	public static final String SERVER_PROXY = "com.jlgm.mmdr.main.ServerProxy";
}


Fix link not opening browser (about)

Fix link not opening browser (about)

--- Atarashii/src/net/somethingdreadful/MAL/AboutActivity.java
+++ Atarashii/src/net/somethingdreadful/MAL/AboutActivity.java
@@ -22,10 +22,12 @@
         TextView motokochanMalContent = (TextView) findViewById(R.id.contributor_motokochan_name);
         TextView apkawaMalContent = (TextView) findViewById(R.id.contributor_apkawa_name);
         TextView acknowledgementsContent = (TextView) findViewById(R.id.acknowledgements_card_content);
+        TextView communityContent = (TextView) findViewById(R.id.community_card_content);

         animaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
         motokochanMalContent.setMovementMethod(LinkMovementMethod.getInstance());
         apkawaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
+        communityContent.setMovementMethod(LinkMovementMethod.getInstance());
         acknowledgementsContent.setMovementMethod(LinkMovementMethod.getInstance());

     }

<|original_code|>
package net.somethingdreadful.MAL;

import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;

public class AboutActivity extends SherlockActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        setTitle(R.string.title_activity_about);
        ActionBar bar = getSupportActionBar();
        bar.setDisplayHomeAsUpEnabled(true);

        TextView animaMalContent = (TextView) findViewById(R.id.contributor_anima_name);
        TextView motokochanMalContent = (TextView) findViewById(R.id.contributor_motokochan_name);
        TextView apkawaMalContent = (TextView) findViewById(R.id.contributor_apkawa_name);
        TextView acknowledgementsContent = (TextView) findViewById(R.id.acknowledgements_card_content);

        animaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        motokochanMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        apkawaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        acknowledgementsContent.setMovementMethod(LinkMovementMethod.getInstance());

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                finish();
        }

        return true;
    }

}

<|edits_diff|>
--- Atarashii/src/net/somethingdreadful/MAL/AboutActivity.java
+++ Atarashii/src/net/somethingdreadful/MAL/AboutActivity.java
@@ -22,6 +22,7 @@
         TextView motokochanMalContent = (TextView) findViewById(R.id.contributor_motokochan_name);
         TextView apkawaMalContent = (TextView) findViewById(R.id.contributor_apkawa_name);
         TextView acknowledgementsContent = (TextView) findViewById(R.id.acknowledgements_card_content);
+        TextView communityContent = (TextView) findViewById(R.id.community_card_content);

         animaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
         motokochanMalContent.setMovementMethod(LinkMovementMethod.getInstance());
<|current_version|>
package net.somethingdreadful.MAL;

import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;

public class AboutActivity extends SherlockActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        setTitle(R.string.title_activity_about);
        ActionBar bar = getSupportActionBar();
        bar.setDisplayHomeAsUpEnabled(true);

        TextView animaMalContent = (TextView) findViewById(R.id.contributor_anima_name);
        TextView motokochanMalContent = (TextView) findViewById(R.id.contributor_motokochan_name);
        TextView apkawaMalContent = (TextView) findViewById(R.id.contributor_apkawa_name);
        TextView acknowledgementsContent = (TextView) findViewById(R.id.acknowledgements_card_content);
        TextView communityContent = (TextView) findViewById(R.id.community_card_content);

        animaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        motokochanMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        apkawaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        acknowledgementsContent.setMovementMethod(LinkMovementMethod.getInstance());

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                finish();
        }

        return true;
    }

}

<|next_version|>
package net.somethingdreadful.MAL;

import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;

public class AboutActivity extends SherlockActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        setTitle(R.string.title_activity_about);
        ActionBar bar = getSupportActionBar();
        bar.setDisplayHomeAsUpEnabled(true);

        TextView animaMalContent = (TextView) findViewById(R.id.contributor_anima_name);
        TextView motokochanMalContent = (TextView) findViewById(R.id.contributor_motokochan_name);
        TextView apkawaMalContent = (TextView) findViewById(R.id.contributor_apkawa_name);
        TextView acknowledgementsContent = (TextView) findViewById(R.id.acknowledgements_card_content);
        TextView communityContent = (TextView) findViewById(R.id.community_card_content);

        animaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        motokochanMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        apkawaMalContent.setMovementMethod(LinkMovementMethod.getInstance());
        communityContent.setMovementMethod(LinkMovementMethod.getInstance());
        acknowledgementsContent.setMovementMethod(LinkMovementMethod.getInstance());

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                finish();
        }

        return true;
    }

}


Add documentation to controller methods.

--- src/main/java/de/syquel/bushytail/controller/IBushyTailController.java
+++ src/main/java/de/syquel/bushytail/controller/IBushyTailController.java
@@ -31,8 +31,17 @@
  */
 public interface IBushyTailController<T> {

+    /**
+     * Read an entity.
+     * @param keyPredicates the search criterias
+     * @return the entity
+     */
     T read(List<UriParameter> keyPredicates);

+    /**
+     * Create the entity.
+     * @param entity the entity
+     */
     void create(T entity);

 }

<|original_code|>
/*
 * Copyright 2016, Frederik Boster
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package de.syquel.bushytail.controller;

import org.apache.olingo.server.api.uri.UriParameter;

import java.util.List;

/**
 * Interface for all ODataControllers. Provides CRUD Operations.
 *
 * @author Clemens Bartz
 * @author Frederik Boster
 * @since 1.0
 *
 * @param <T> Entity which is handled by the controller.
 */
public interface IBushyTailController<T> {

    T read(List<UriParameter> keyPredicates);

    void create(T entity);

}

<|edits_diff|>
--- src/main/java/de/syquel/bushytail/controller/IBushyTailController.java
+++ src/main/java/de/syquel/bushytail/controller/IBushyTailController.java
@@ -31,6 +31,11 @@
  */
 public interface IBushyTailController<T> {

+    /**
+     * Read an entity.
+     * @param keyPredicates the search criterias
+     * @return the entity
+     */
     T read(List<UriParameter> keyPredicates);

     void create(T entity);
<|current_version|>
/*
 * Copyright 2016, Frederik Boster
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package de.syquel.bushytail.controller;

import org.apache.olingo.server.api.uri.UriParameter;

import java.util.List;

/**
 * Interface for all ODataControllers. Provides CRUD Operations.
 *
 * @author Clemens Bartz
 * @author Frederik Boster
 * @since 1.0
 *
 * @param <T> Entity which is handled by the controller.
 */
public interface IBushyTailController<T> {

    /**
     * Read an entity.
     * @param keyPredicates the search criterias
     * @return the entity
     */
    T read(List<UriParameter> keyPredicates);

    void create(T entity);

}

<|next_version|>
/*
 * Copyright 2016, Frederik Boster
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package de.syquel.bushytail.controller;

import org.apache.olingo.server.api.uri.UriParameter;

import java.util.List;

/**
 * Interface for all ODataControllers. Provides CRUD Operations.
 *
 * @author Clemens Bartz
 * @author Frederik Boster
 * @since 1.0
 *
 * @param <T> Entity which is handled by the controller.
 */
public interface IBushyTailController<T> {

    /**
     * Read an entity.
     * @param keyPredicates the search criterias
     * @return the entity
     */
    T read(List<UriParameter> keyPredicates);

    /**
     * Create the entity.
     * @param entity the entity
     */
    void create(T entity);

}


Add name property to dummy dbms

Add name property to dummy dbms

--- test-parent/connector/src/main/java/com/speedment/test/connector/support/Dummies.java
+++ test-parent/connector/src/main/java/com/speedment/test/connector/support/Dummies.java
@@ -19,6 +19,7 @@

 import com.speedment.runtime.config.Dbms;
 import com.speedment.runtime.config.DbmsUtil;
+import com.speedment.runtime.config.trait.HasNameUtil;

 import java.util.HashMap;
 import java.util.Map;
@@ -33,6 +34,7 @@
         data.put(DbmsUtil.IP_ADDRESS, "localhost");
         data.put(DbmsUtil.PORT, 3066);
         data.put(DbmsUtil.USERNAME, "username");
+        data.put(HasNameUtil.NAME, "name");

         return Dbms.create(null, data);
     }

<|original_code|>
/*
 *
 * Copyright (c) 2006-2020, Speedment, Inc. All Rights Reserved.
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.speedment.test.connector.support;

import com.speedment.runtime.config.Dbms;
import com.speedment.runtime.config.DbmsUtil;

import java.util.HashMap;
import java.util.Map;

public final class Dummies {

    private Dummies() {
    }

    public static Dbms dbms() {
        final Map<String, Object> data = new HashMap<>();
        data.put(DbmsUtil.IP_ADDRESS, "localhost");
        data.put(DbmsUtil.PORT, 3066);
        data.put(DbmsUtil.USERNAME, "username");

        return Dbms.create(null, data);
    }
}

<|edits_diff|>
--- test-parent/connector/src/main/java/com/speedment/test/connector/support/Dummies.java
+++ test-parent/connector/src/main/java/com/speedment/test/connector/support/Dummies.java
@@ -19,6 +19,7 @@

 import com.speedment.runtime.config.Dbms;
 import com.speedment.runtime.config.DbmsUtil;
+import com.speedment.runtime.config.trait.HasNameUtil;

 import java.util.HashMap;
 import java.util.Map;
<|current_version|>
/*
 *
 * Copyright (c) 2006-2020, Speedment, Inc. All Rights Reserved.
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.speedment.test.connector.support;

import com.speedment.runtime.config.Dbms;
import com.speedment.runtime.config.DbmsUtil;
import com.speedment.runtime.config.trait.HasNameUtil;

import java.util.HashMap;
import java.util.Map;

public final class Dummies {

    private Dummies() {
    }

    public static Dbms dbms() {
        final Map<String, Object> data = new HashMap<>();
        data.put(DbmsUtil.IP_ADDRESS, "localhost");
        data.put(DbmsUtil.PORT, 3066);
        data.put(DbmsUtil.USERNAME, "username");

        return Dbms.create(null, data);
    }
}

<|next_version|>
/*
 *
 * Copyright (c) 2006-2020, Speedment, Inc. All Rights Reserved.
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.speedment.test.connector.support;

import com.speedment.runtime.config.Dbms;
import com.speedment.runtime.config.DbmsUtil;
import com.speedment.runtime.config.trait.HasNameUtil;

import java.util.HashMap;
import java.util.Map;

public final class Dummies {

    private Dummies() {
    }

    public static Dbms dbms() {
        final Map<String, Object> data = new HashMap<>();
        data.put(DbmsUtil.IP_ADDRESS, "localhost");
        data.put(DbmsUtil.PORT, 3066);
        data.put(DbmsUtil.USERNAME, "username");
        data.put(HasNameUtil.NAME, "name");

        return Dbms.create(null, data);
    }
}