Developer Programs

April 3rd, 2015

There are many developer programs available for software/applications/mobile developers nowadays to support and enable developers to integrate or even build applications using their APIs .
Here’s a list, sourced from DZone, in alphabetical order:

  1. ActiveState Code –
  2. Amazon Developer –
  3. Android Developer –
  4. Apple iOS Developer –
  5. AT&T Developer Program –
  6. AutoDesk Developer Network –
  7. Avaya DevConnect –
  8. BestBuy APIs –
  9. Bluetooth SIG Developer Showcase –
  10. Braintree Developer Program –
  11. Carriots –
  12. Cisco DevNet –
  13. DocuSign Developer Program –
  14. Dolby Developer Program –
  15. Embarcadero Developer Program –
  16. EMC CODE –
  17. EVRYTHNG Developers –
  18. Facebook Developers –
  19. Ford Developer Program –
  20. GitHub Developer Program –
  21. Google Developers –
  22. IBM developerWorks –
  23. Intel DeveloperZone –
  24. Intuit Developer –
  25. Magnolia Community –
  26. MapR Developer Central –
  27. Microsoft BizSpark –
  28. MongoDB Masters –
  29. Mozilla Developer Network –
  30. MuleSoft //Dev –
  31. Oracle Technology Network –
  32. OutSystems Developer Community –
  33. Philips Hue Developer Program –
  34. Qualcomm Developer Network –
  35. Rackspace Developer+ –
  36. Red Hat Enterprise Linux Developer Program –
  37. Red Hat JBoss Developer Program –
  38. SalesForce Developers –
  39. Samsung Developer Program –
  40. SAP Developer Program –
  41. Shopify Partner Program –
  42. Twitter Developers –
  43. Verizon M2M Developer Program –


Software, Technology

Running JUnit tests in Maven with Surefire Plugin and skipTests in default packaging

March 3rd, 2015

Further to the JUnit test we have created, it’s time to have it built into a maven build script so that the test can be run.
Once you have JUnit in your pom.xml file, maven will run tests with JUnit and all valid JUnit test classes under src/test/java directory.
However if you are using more than one test framework such as both TestNG and JUnit, you will need to explicitly specify JUnit as the test provider.


For the default maven packaging, you might not want to run test and the tests can be run as a separate job/task.
To address this, all you need to do is create a skipTests property in the pom.xml and have it set to false only when you need to run the tests.


Use skipTests in the configuration element.


To run the tests:
mvn test -DskipTests=false

Java, Software , ,

Quick Guide to JUnit multiple parameter tests with Parameterized annotation

February 15th, 2015

It is extremely easy to create JUnit test classes to run and test your application or Java code.
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
All it needs is to include the JUnit library and use the @Test annotation for the method you need to run as test.
However, sometimes we need the convenience of the same test method to run with different parameters.
Following is an example how it can be done easily with some changes to a single test method by adding @RunWith(Parameterized.class) before the class name and then initialize a collection of parameters with @Parameters.
You can also read the parameters from a data provider once using a initializing method with @BeforeClass.

package net.marvinlee.test;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

public class JunitTest

	private String code;
	private String description;

	public JunitTest(String code, String description)
		this.code = code;
		this.description = description;

	 public static Collection getParameters() 
		 ArrayList<Object[]> paramList = new ArrayList<Object[]>();
		 return paramList;

	protected static void addTestcases(ArrayList<Object[]> paramList)
		for(int i=1;i<=10;i++)
			paramList.add(new Object[]{"Code" + i, "Description " + i});

	public static void init() 
		System.out.println("Current dir:" +  JunitTest.class.getClassLoader().getResource("").getPath()); 

	public void validateCases() 
		boolean matched = ((code.equals("Code5") && description.equals("Description 5"))
			|| (code.equals("Code6") && description.equals("Description 6")));
		Assert.assertTrue("Failed test=" + code, matched);

JUnit test classes can be run with Eclipse IDE and the above test class will show run results similar to the following screenshot.
Only the 4th and 5th testcases that match with the hardcoded values will pass while we get remaining 8 failures.

Have a run with it!

Java, Software ,