{"@attributes":{"version":"2.0"},"channel":{"title":"DEV Community: raquezha","description":"The latest articles on DEV Community by raquezha (@raquezha).","link":"https:\/\/dev.to\/raquezha","image":{"url":"https:\/\/media2.dev.to\/dynamic\/image\/width=90,height=90,fit=cover,gravity=auto,format=auto\/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F159924%2F8c4991c8-420c-4da4-96bb-f2ca6d1f7659.png","title":"DEV Community: raquezha","link":"https:\/\/dev.to\/raquezha"},"language":"en","item":[{"title":"Farsite is a blockchain-powered sandbox ","pubDate":"Fri, 06 Aug 2021 16:25:32 +0000","link":"https:\/\/dev.to\/raquezha\/farsite-is-a-blockchain-powered-sandbox-3n61","guid":"https:\/\/dev.to\/raquezha\/farsite-is-a-blockchain-powered-sandbox-3n61","description":"<p>Farsite a new blockchain-powered sandbox MMO RTS game with elements of adventure in a sci-fi setting based on a post-apocalyptic story!<\/p>\n\n<p>Register now! <a href=\"https:\/\/farsite.club\/u\/raquezha\">https:\/\/farsite.club\/u\/raquezha<\/a><\/p>\n\n","category":["farsite","raquezha","nft","blockchain"]},{"title":"Sharing is only supported for boot loader classes because bootstrap classpath has been appended.","pubDate":"Wed, 05 May 2021 17:38:11 +0000","link":"https:\/\/dev.to\/raquezha\/sharing-is-only-supported-for-boot-loader-classes-because-bootstrap-classpath-has-been-appended-1lnk","guid":"https:\/\/dev.to\/raquezha\/sharing-is-only-supported-for-boot-loader-classes-because-bootstrap-classpath-has-been-appended-1lnk","description":"<p><a href=\"https:\/\/res.cloudinary.com\/practicaldev\/image\/fetch\/s--umCLoCA---\/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880\/https:\/\/dev-to-uploads.s3.amazonaws.com\/uploads\/articles\/j1insef5uhrbxjtfp0d2.png\" class=\"article-body-image-wrapper\"><img src=\"https:\/\/res.cloudinary.com\/practicaldev\/image\/fetch\/s--umCLoCA---\/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880\/https:\/\/dev-to-uploads.s3.amazonaws.com\/uploads\/articles\/j1insef5uhrbxjtfp0d2.png\" alt=\"Alt Text\"><\/a><\/p>\n\n<p>I've encountered this error when I set Gradle JDK 16, downgrading to Java Version 11 seems to fix the issue.<\/p>\n\n<p>If downgrading is not an issue for you then this will fix it.<\/p>\n\n<p><a href=\"https:\/\/res.cloudinary.com\/practicaldev\/image\/fetch\/s--PNSneQBF--\/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880\/https:\/\/dev-to-uploads.s3.amazonaws.com\/uploads\/articles\/rcd7wuvdl7b255z2lke7.png\" class=\"article-body-image-wrapper\"><img src=\"https:\/\/res.cloudinary.com\/practicaldev\/image\/fetch\/s--PNSneQBF--\/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880\/https:\/\/dev-to-uploads.s3.amazonaws.com\/uploads\/articles\/rcd7wuvdl7b255z2lke7.png\" alt=\"Alt Text\"><\/a><\/p>\n\n<p>-- <br>\nHere's what I'm using<\/p>\n\n<ol>\n<li>Android Studio Arctic Fox | 2020.3.1 Canary 15<\/li>\n<li>Gradle 7.0<\/li>\n<li>Amazon Correto 16.0.1 (bug)<\/li>\n<li>Java Version 11.0.1 (fix)<\/li>\n<\/ol>\n\n","category":["gradle","android","jdk16","jdk11"]},{"title":"JUnit5 Unit Testing, Test events were not received.","pubDate":"Wed, 05 May 2021 17:19:42 +0000","link":"https:\/\/dev.to\/raquezha\/junit5-unit-testing-test-events-were-not-received-37dc","guid":"https:\/\/dev.to\/raquezha\/junit5-unit-testing-test-events-were-not-received-37dc","description":"<h1>\n  \n  \n  The Problem\n<\/h1>\n\n<p>I came from Junit4 testing, and I want to try Junit5 and started writing some unit tests and I'm curious why I received this message: ```Test<br>\n<br>\n events were not received.<br>\n<\/p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>\nAfter some digging I've found out more detailed errors:\n<\/code><\/pre>\n\n<\/div>\n\n\n\n<p>FAILURE: Build failed with an exception.<\/p>\n\n<ul>\n<li>What went wrong:\nExecution failed for task ':splash:testDebugUnitTest'.\n&gt; No tests found for given includes: <a href=\"\/\/filter.includeTestsMatching\">com.raquezha.heograpiya.splash.SampleTestTest<\/a>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>\nSo I google on how to solve the problem and stumble on this site [gradle.org site](https:\/\/docs.gradle.org\/current\/userguide\/java_testing.html#using_junit5)\n\n\nI just have to add this code to enable JUnit Platform to run my tests:\n\nGradle DSL (build.gradle)\n<\/code><\/pre>\n\n<\/div>\n\n\n\n<p>test {<br>\n    useJUnitPlatform()<br>\n}<\/p>\n\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>Kotlin DSL (build.gradle.kts)\n<\/code><\/pre>\n\n<\/div>\n\n\n<p>tasks.named(\"test\") {<br>\n    useJUnitPlatform()<br>\n}<\/p>\n\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>\nBut after adding those code another problem occurred:\n\n\n<\/code><\/pre>\n\n<\/div>\n<p><br>\n A problem occurred evaluating project ':app'.<br>\n\"&gt; Could not find method test()\" <br>\n<\/p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>\nI've added this because maybe for some this is the solution but unfortunately this did not work for me. If above did not work for you can try the solution below.\n\n#Solution\nAfter digging a little because all of my searches were not working I stumble upon this stackoverflow [post](https:\/\/stackoverflow.com\/questions\/58168384\/how-to-run-tests-by-gradle-instead-of-intellij-with-junit5-and-springboot2-in-mu) it turns out I'm missing one import!\n\n\nI just add this missing dependency:\n<\/code><\/pre>\n\n<\/div>\n\n\n\n<p>testImplementation 'org.junit.jupiter:junit-jupiter:5.8.0-M1'<\/p>\n\n\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>And after successful gradle sync, tadah!\n![image](https:\/\/dev-to-uploads.s3.amazonaws.com\/uploads\/articles\/826v4n82a2m87qbtjn2b.png)\n\nI hope this helps someone fix this noob error.\n\n--\n\nHere's what I'm using\n1. Android Studio Arctic Fox | 2020.3.1 Canary 15\n2. Gradle 7.0\n3. Kotlin 1.5.0\n4. Dependencies\n<\/code><\/pre>\n\n<\/div>\n\n\n\n<p>testImplementation 'org.junit.jupiter:junit-jupiter:5.8.0-M1'<br>\ntestImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.0-M1'<br>\ntestImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.0-M1'<br>\ntestRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.0-M1'<\/p>\n\n\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>\n<\/code><\/pre>\n\n<\/div>\n\n","category":["kotlin","junit5","test","android"]}]}}