{"id":22744,"date":"2014-03-14T07:00:52","date_gmt":"2014-03-14T05:00:52","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=22744"},"modified":"2014-03-16T23:56:57","modified_gmt":"2014-03-16T21:56:57","slug":"parameterized-junit-tests","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html","title":{"rendered":"Parameterized JUnit tests"},"content":{"rendered":"<p>Sometimes you encounter a problem that just screams for using &#8220;parameterized&#8221; tests rather than copy\/pasting the same method many times. \u00a0 The test method is basically the same and the only thing that changes is the data passed in. \u00a0In this case, consider creating a test case that utilitizes the &#8221; <a href=\"http:\/\/junit.sourceforge.net\/javadoc\/org\/junit\/runners\/Parameterized.html\" target=\"_blank\">Parameterized<\/a>&#8221; class from JUnit.<\/p>\n<p>I recently ran into a problem where our validation of an email address did not allow unicode characters. \u00a0The fix was fairly straight-forward, change the regular expression to allow those characters. \u00a0Next, it was time to test the change. \u00a0Rather than copy\/paste separate methods for each set of data, I decided to learn about the Parameterized method. \u00a0 Below is the result. \u00a0The data includes the expected result and the email address to be validated.<\/p>\n<h2>JUnit test class<\/h2>\n<pre class=\" brush:java\">package com.mycompany.client;\r\n \r\nimport static org.junit.Assert.*;\r\n \r\nimport java.util.Arrays;\r\n \r\nimport org.junit.Test;\r\nimport org.junit.runner.RunWith;\r\nimport org.junit.runners.Parameterized;\r\nimport org.junit.runners.Parameterized.Parameters;\r\n \r\nimport com.mycompany.test.TestServiceUtil;\r\n \r\n\/**\r\n * Parameterized test case for validating email addresses against a regular expression.\r\n * We need to allow unicode characters in the userid portion of the email address, so \r\n * these test cases where created to help validate the validateEmailAddress method\r\n * in the FieldValidationController class.\r\n * \r\n * @author mmiller\r\n *\r\n *\/\r\n@RunWith(Parameterized.class)\r\npublic class TestFieldValiationController {\r\n \r\n    @Parameters(name = \"{index}: {1} is valid email address = {0}\")\r\n    public static Iterable&lt;Object&gt; data() {\r\n        return Arrays.asList(new Object[][] { \r\n         { true, \"john@mycomp.com\" },           { true,  \"john123@mycomp.com\" },\r\n         { true, \"j+._%20_-brown@mycomp.com\" }, { true,  \"123@mycomp.com\" },\r\n         { false, \"john brown@mycomp.com\" },    { false, \"123@mycomp\" },\r\n         { false, \"john^brown@mycomp.com\" },    { true , \"1john@mycomp.com\" },\r\n         { false, \"john#brown@mycomp.com\" },    { false, \"john!brown@mycomp.com\" },\r\n         { false, \"john()brown@mycomp.com\" },   { false, \"john=brown@mycomp.com\" },\r\n         { true,  \"joh\u00f1.brown@mycomp.com\" },    { false, \"john.brown@mycomp.co\u00f1\" },\r\n         { true,  \"joh\u00fa@mycomp.com\" },          { true,  \"joh\u00ed\u00e1\u00f3@mycomp.com\" }\r\n        });\r\n    }\r\n   \r\n    private boolean expected;\r\n    private String emailAddress;\r\n \r\n    public TestFieldValiationController(boolean expected, String emailAddress) {\r\n        this.expected = expected;\r\n        this.emailAddress = emailAddress;\r\n        TestServiceUtil.getInstance();\r\n    }\r\n \r\n    @Test\r\n    public void validateEmail() {\r\n        assertEquals(expected, FieldValidationController.getInstance().validateEmailAddress(emailAddress));\r\n    }\r\n}<\/pre>\n<p><b>Hope this helps!<\/b><br \/>\n&nbsp;<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<div style=\"border: 1px solid #D8D8D8; background: #FAFAFA; width: 100%; padding-left: 5px;\"><b><i>Reference: <\/i><\/b><a href=\"http:\/\/programmingitch.blogspot.com\/2014\/03\/parameterized-junit-tests.html\">Parameterized JUnit tests<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\">JCG partner<\/a> Mike Miller at the <a href=\"http:\/\/programmingitch.blogspot.com\/\">Scratching my programming itch<\/a> blog.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you encounter a problem that just screams for using &#8220;parameterized&#8221; tests rather than copy\/pasting the same method many times. \u00a0 The test method is basically the same and the only thing that changes is the data passed in. \u00a0In this case, consider creating a test case that utilitizes the &#8221; Parameterized&#8221; class from JUnit. &hellip;<\/p>\n","protected":false},"author":434,"featured_media":176,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[274,273],"class_list":["post-22744","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-junit","tag-testing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Parameterized JUnit tests<\/title>\n<meta name=\"description\" content=\"Sometimes you encounter a problem that just screams for using &quot;parameterized&quot; tests rather than copy\/pasting the same method many times. \u00a0 The test method\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Parameterized JUnit tests\" \/>\n<meta property=\"og:description\" content=\"Sometimes you encounter a problem that just screams for using &quot;parameterized&quot; tests rather than copy\/pasting the same method many times. \u00a0 The test method\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-14T05:00:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-03-16T21:56:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/junit-logo-e1426444701180.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mike Miller\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mikemil2713\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mike Miller\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html\"},\"author\":{\"name\":\"Mike Miller\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/d7933529fd39532e44652184e82db7c9\"},\"headline\":\"Parameterized JUnit tests\",\"datePublished\":\"2014-03-14T05:00:52+00:00\",\"dateModified\":\"2014-03-16T21:56:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html\"},\"wordCount\":156,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/junit-logo-e1426444701180.jpg\",\"keywords\":[\"JUnit\",\"Testing\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html\",\"name\":\"Parameterized JUnit tests\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/junit-logo-e1426444701180.jpg\",\"datePublished\":\"2014-03-14T05:00:52+00:00\",\"dateModified\":\"2014-03-16T21:56:57+00:00\",\"description\":\"Sometimes you encounter a problem that just screams for using \\\"parameterized\\\" tests rather than copy\\\/pasting the same method many times. \u00a0 The test method\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/junit-logo-e1426444701180.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/junit-logo-e1426444701180.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/03\\\/parameterized-junit-tests.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Parameterized JUnit tests\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/d7933529fd39532e44652184e82db7c9\",\"name\":\"Mike Miller\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a9710bbdabfaf8ecbd42a8accead0aa9390fe541635e4a6eac6c25d9cda58db8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a9710bbdabfaf8ecbd42a8accead0aa9390fe541635e4a6eac6c25d9cda58db8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a9710bbdabfaf8ecbd42a8accead0aa9390fe541635e4a6eac6c25d9cda58db8?s=96&d=mm&r=g\",\"caption\":\"Mike Miller\"},\"description\":\"Mike is a software developer who loves to learn how things work. A Java programmer who caught the Groovy &amp; Grails itch and is always looking for opportunities to include them as part of the solution.\",\"sameAs\":[\"http:\\\/\\\/programmingitch.blogspot.com\\\/\",\"http:\\\/\\\/www.linkedin.com\\\/pub\\\/mike-miller\\\/7\\\/78a\\\/496\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/mikemil2713\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/mike-miller\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Parameterized JUnit tests","description":"Sometimes you encounter a problem that just screams for using \"parameterized\" tests rather than copy\/pasting the same method many times. \u00a0 The test method","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html","og_locale":"en_US","og_type":"article","og_title":"Parameterized JUnit tests","og_description":"Sometimes you encounter a problem that just screams for using \"parameterized\" tests rather than copy\/pasting the same method many times. \u00a0 The test method","og_url":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2014-03-14T05:00:52+00:00","article_modified_time":"2014-03-16T21:56:57+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/junit-logo-e1426444701180.jpg","type":"image\/jpeg"}],"author":"Mike Miller","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mikemil2713","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Mike Miller","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html"},"author":{"name":"Mike Miller","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/d7933529fd39532e44652184e82db7c9"},"headline":"Parameterized JUnit tests","datePublished":"2014-03-14T05:00:52+00:00","dateModified":"2014-03-16T21:56:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html"},"wordCount":156,"commentCount":3,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/junit-logo-e1426444701180.jpg","keywords":["JUnit","Testing"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html","url":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html","name":"Parameterized JUnit tests","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/junit-logo-e1426444701180.jpg","datePublished":"2014-03-14T05:00:52+00:00","dateModified":"2014-03-16T21:56:57+00:00","description":"Sometimes you encounter a problem that just screams for using \"parameterized\" tests rather than copy\/pasting the same method many times. \u00a0 The test method","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/junit-logo-e1426444701180.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/junit-logo-e1426444701180.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2014\/03\/parameterized-junit-tests.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Parameterized JUnit tests"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/d7933529fd39532e44652184e82db7c9","name":"Mike Miller","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a9710bbdabfaf8ecbd42a8accead0aa9390fe541635e4a6eac6c25d9cda58db8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a9710bbdabfaf8ecbd42a8accead0aa9390fe541635e4a6eac6c25d9cda58db8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a9710bbdabfaf8ecbd42a8accead0aa9390fe541635e4a6eac6c25d9cda58db8?s=96&d=mm&r=g","caption":"Mike Miller"},"description":"Mike is a software developer who loves to learn how things work. A Java programmer who caught the Groovy &amp; Grails itch and is always looking for opportunities to include them as part of the solution.","sameAs":["http:\/\/programmingitch.blogspot.com\/","http:\/\/www.linkedin.com\/pub\/mike-miller\/7\/78a\/496","https:\/\/x.com\/https:\/\/twitter.com\/mikemil2713"],"url":"https:\/\/www.javacodegeeks.com\/author\/mike-miller"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/22744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/434"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=22744"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/22744\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/176"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=22744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=22744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=22744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}