{"id":1059,"date":"2012-04-26T21:00:00","date_gmt":"2012-04-26T21:00:00","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/2012\/10\/dbunit-spring-and-annotations-for-database-testing.html"},"modified":"2013-08-21T11:59:57","modified_gmt":"2013-08-21T08:59:57","slug":"dbunit-spring-and-annotations-for","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html","title":{"rendered":"DBUnit, Spring and Annotations for Database testing"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left\">If you have ever tried writing database tests in Java you might have come across <a href=\"http:\/\/www.dbunit.org\/\">DBUnit<\/a>. DBUnit allows you to setup and teardown your database so that it contains consistent rows that you can write tests against.<\/p>\n<p>You usually specify the rows that you want DBUnit to insert by writing a simple XML document, for example:<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<pre class=\"brush:xml\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;dataset&gt;\r\n &lt;Person id=\"0\" title=\"Mr\" firstName=\"Dave\" lastName=\"Smith\"\/&gt;\r\n &lt;Person id=\"1\" title=\"Mrs\" firstName=\"Jane\" lastName=\"Doe\"\/&gt;\r\n&lt;\/dataset&gt;\r\n<\/pre>\n<p>You can also use the same format XML files to assert that a database contains specific rows.    <\/p>\n<p>DBUnit works especially well using in-memory databases, and if you work with Spring, <a href=\"http:\/\/static.springsource.org\/spring\/docs\/3.1.x\/spring-framework-reference\/html\/jdbc.html#jdbc-embedded-database-support\">setting them up<\/a> is pretty straightforward. <a href=\"http:\/\/blog.zenika.com\/index.php?post\/2010\/02\/04\/Testing-SQL-queries-with-Spring-and-DbUnit%2C-part-1\">Here<\/a> is a good article describing how to get started.    <\/p>\n<p>Working directly with DBUnit is fine, but after a while it can become apparent how many of your tests are following the same pattern of setting-up the database then testing the result. To cut down on this duplication you can use the <a href=\"http:\/\/springtestdbunit.github.com\/spring-test-dbunit\/\">spring-test-dbunit project<\/a>. This project is hosted on <a href=\"https:\/\/github.com\/springtestdbunit\/spring-test-dbunit\">GitHub<\/a> and provides a new set of annotations that can be added to your test methods. Version 1.0.0 has just been released and is now <a href=\"http:\/\/repo1.maven.org\/maven2\/com\/github\/springtestdbunit\/spring-test-dbunit\/1.0.0\/\">available<\/a> in the maven central repository:       <div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:xml\">&lt;dependency&gt;\r\n  &lt;groupId&gt;com.github.springtestdbunit&lt;\/groupId&gt;\r\n  &lt;artifactId&gt;spring-test-dbunit&lt;\/artifactId&gt;\r\n  &lt;version&gt;1.0.0&lt;\/version&gt;\r\n  &lt;scope&gt;test&lt;\/scope&gt;\r\n&lt;\/dependency&gt;\r\n<\/pre>\n<p>Once installed three new annotations are available for use in your tests: <tt>@DatabaseSetup<\/tt>, <tt>@DatabaseTearDown<\/tt> and <tt>@ExpectedDatabase<\/tt>. All three can either be used on the test class or individual test methods.    <\/p>\n<p>The <tt>@DatabaseSetup<\/tt> and <tt>@DatabaseTearDown<\/tt> annotations are used to put your database into a consistent state, either before the test runs or after it has finished. You specify the dataset to use as the annotation value, for example:     <\/p>\n<pre class=\"brush:java\">@Test\r\n@DatabaseSetup(\"sampleData.xml\")\r\npublic void testFind() throws Exception {\r\n  \/\/ test code\r\n}\r\n<\/pre>\n<p>The <tt>@ExpectedDatabase<\/tt> annotation is used to verify the state of the database after the test has finished. As with the previous annotations you must specify the dataset to use.       <\/p>\n<pre class=\"brush:java\">@Test\r\n@DatabaseSetup(\"sampleData.xml\")\r\n@ExpectedDatabase(\"expectedData.xml\")\r\npublic void testRemove() throws Exception {\r\n  \/\/ test code\r\n}\r\n<\/pre>\n<p>You can use <tt>@ExpectedDatabase<\/tt> in a couple of different modes depending on how strict the verification should be (see the <a href=\"http:\/\/springtestdbunit.github.com\/spring-test-dbunit\/apidocs\/com\/github\/springtestdbunit\/annotation\/ExpectedDatabase.html\">JavaDocs<\/a> for details).    <\/p>\n<p>For the annotations to be processed you need to make sure that your test is using the DbUnitTestExecutionListener. See the project <a href=\"http:\/\/springtestdbunit.github.com\/spring-test-dbunit\/\">readme<\/a> for full details. If you want to learn more there is an <a href=\"https:\/\/github.com\/springtestdbunit\/spring-test-dbunit\/tree\/master\/spring-test-dbunit-sample\">example project on GitHub<\/a> and some walk-though instructions available <a href=\"http:\/\/springtestdbunit.github.com\/spring-test-dbunit\/sample.html\">here<\/a>.  <\/p>\n<p><strong><i>Reference: <\/i><\/strong><a href=\"http:\/\/coderphil.wordpress.com\/2012\/04\/23\/database-testing-using-dbunit-spring-and-annotations\/\">Database testing using DBUnit, Spring and Annotations<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a> Phillip Webb  at the <a href=\"http:\/\/coderphil.wordpress.com\/\">Phil Webb&#8217;s Blog<\/a> blog.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you have ever tried writing database tests in Java you might have come across DBUnit. DBUnit allows you to setup and teardown your database so that it contains consistent rows that you can write tests against. You usually specify the rows that you want DBUnit to insert by writing a simple XML document, for &hellip;<\/p>\n","protected":false},"author":148,"featured_media":101,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[343,428,347,30,273],"class_list":["post-1059","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-annotations","tag-database","tag-dbunit","tag-spring","tag-testing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DBUnit, Spring and Annotations for Database testing - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"If you have ever tried writing database tests in Java you might have come across DBUnit. DBUnit allows you to setup and teardown your database so that it\" \/>\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\/2012\/04\/dbunit-spring-and-annotations-for.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DBUnit, Spring and Annotations for Database testing - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"If you have ever tried writing database tests in Java you might have come across DBUnit. DBUnit allows you to setup and teardown your database so that it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.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=\"2012-04-26T21:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-08-21T08:59:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/dbunit-logo.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=\"Phillip Webb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Phillip Webb\" \/>\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\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html\"},\"author\":{\"name\":\"Phillip Webb\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/a940d4f4bbf6313a0bf84d85d9dcb3b4\"},\"headline\":\"DBUnit, Spring and Annotations for Database testing\",\"datePublished\":\"2012-04-26T21:00:00+00:00\",\"dateModified\":\"2013-08-21T08:59:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html\"},\"wordCount\":377,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/dbunit-logo.jpg\",\"keywords\":[\"Annotations\",\"Database\",\"dbUnit\",\"Spring\",\"Testing\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html\",\"name\":\"DBUnit, Spring and Annotations for Database testing - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/dbunit-logo.jpg\",\"datePublished\":\"2012-04-26T21:00:00+00:00\",\"dateModified\":\"2013-08-21T08:59:57+00:00\",\"description\":\"If you have ever tried writing database tests in Java you might have come across DBUnit. DBUnit allows you to setup and teardown your database so that it\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/dbunit-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/dbunit-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/04\\\/dbunit-spring-and-annotations-for.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\":\"DBUnit, Spring and Annotations for Database testing\"}]},{\"@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\\\/a940d4f4bbf6313a0bf84d85d9dcb3b4\",\"name\":\"Phillip Webb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c8a96097121f064abb85f7bff521120424753bba1c3e10033a7e3151c75e04b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c8a96097121f064abb85f7bff521120424753bba1c3e10033a7e3151c75e04b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c8a96097121f064abb85f7bff521120424753bba1c3e10033a7e3151c75e04b9?s=96&d=mm&r=g\",\"caption\":\"Phillip Webb\"},\"sameAs\":[\"http:\\\/\\\/coderphil.wordpress.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Phillip-Webb\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DBUnit, Spring and Annotations for Database testing - Java Code Geeks","description":"If you have ever tried writing database tests in Java you might have come across DBUnit. DBUnit allows you to setup and teardown your database so that it","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\/2012\/04\/dbunit-spring-and-annotations-for.html","og_locale":"en_US","og_type":"article","og_title":"DBUnit, Spring and Annotations for Database testing - Java Code Geeks","og_description":"If you have ever tried writing database tests in Java you might have come across DBUnit. DBUnit allows you to setup and teardown your database so that it","og_url":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2012-04-26T21:00:00+00:00","article_modified_time":"2013-08-21T08:59:57+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/dbunit-logo.jpg","type":"image\/jpeg"}],"author":"Phillip Webb","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Phillip Webb","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html"},"author":{"name":"Phillip Webb","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/a940d4f4bbf6313a0bf84d85d9dcb3b4"},"headline":"DBUnit, Spring and Annotations for Database testing","datePublished":"2012-04-26T21:00:00+00:00","dateModified":"2013-08-21T08:59:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html"},"wordCount":377,"commentCount":1,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/dbunit-logo.jpg","keywords":["Annotations","Database","dbUnit","Spring","Testing"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html","url":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html","name":"DBUnit, Spring and Annotations for Database testing - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/dbunit-logo.jpg","datePublished":"2012-04-26T21:00:00+00:00","dateModified":"2013-08-21T08:59:57+00:00","description":"If you have ever tried writing database tests in Java you might have come across DBUnit. DBUnit allows you to setup and teardown your database so that it","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/dbunit-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/dbunit-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2012\/04\/dbunit-spring-and-annotations-for.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":"DBUnit, Spring and Annotations for Database testing"}]},{"@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\/a940d4f4bbf6313a0bf84d85d9dcb3b4","name":"Phillip Webb","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c8a96097121f064abb85f7bff521120424753bba1c3e10033a7e3151c75e04b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c8a96097121f064abb85f7bff521120424753bba1c3e10033a7e3151c75e04b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c8a96097121f064abb85f7bff521120424753bba1c3e10033a7e3151c75e04b9?s=96&d=mm&r=g","caption":"Phillip Webb"},"sameAs":["http:\/\/coderphil.wordpress.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Phillip-Webb"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/1059","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\/148"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=1059"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/1059\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/101"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=1059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=1059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=1059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}