scalatest

monads

Back2Basics: Futures in Scala

Hey folks, in this blog we will be discussing and try to gather some knowledge on how multithreading, concurrency can be achieved and asynchronous computations can be done on immutable values by the use of Futures. Why do we need Futures? The concept of Futures was introduced to allow concurrent programming and avoid wastage of resources which will be blocked in case of sequential code. Continue Reading

Akka http with json4s

Akka Http uses the spray-json library for JSON support. But a few days back while working on a project which was using the json4s library for marshalling/unmarshalling, I got stuck during parsing of JSON request and extracting that parsed values into my target Scala data model.

ScalaTest – How to Disable Test Cases using Tagging

Scala Test – How to disable Test Cases using Tagging Tagging your tests ScalaTest allows you to define some test categories, to “tag” tests as belonging to those categories, and filter tests to run based on their tags. For example, you could tag some tests as being slow and chose to exclude the slow tests during some runs, or say you have some intergration test Continue Reading

Unit Testing Of Kafka

Apache Kafka is a distributed publish-subscribe messaging system and a robust queue that can handle a high volume of data and enables you to pass messages from one end-point to another. Generally, data is published to topic via Producer API and  Consumers API consume data from subscribed topics. In this blog, we will see how to do unit testing of kafka. Unit testing your Kafka Continue Reading

Solr With Scala : Basic Introduction to Embedded Solr

Hello Folks, As we discussed earlier Solr with Scala and AkkaHttp in our last blog we have used Solr as a service and tried to hit solr service with the AkkaHttp and spray routes. Here is the link for the Recap. When we want to do testing for those methods which are creating connection with the remote solr server, have to use Embedded Solr for Continue Reading

Neo4j With Scala: Rest End Points with AKKA HTTP

Hello Folks, Welcome back again in the series of Neo4j with Scala . Let’s start our journey again. But before starting our journey here is the links for recap who join late us in the journey : Getting Started Neo4j with Scala : An Introduction Neo4j with Scala: Defining User Defined Procedures and APOC Neo4j with Scala: Migrate Data From Other Database to Neo4j Neo4j Continue Reading

integrating Cucumber with Akka-Http

Blending Cucumber, Cassandra and Akka-Http

Folks, Knoldus has always pioneered the deep diving into the best ways to use cutting edge technologies. In the past few days, one of our team carried this deed by integrating Cucumber with Akka-Http, Cassandra and of course, Scala. In this blog, we reach out to you to explain and show how this can be done. Cucumber Cucumber is for Behavior Driven Design (BDD). The Continue Reading

Cassandra with Spark 2.0 : Building Rest API !

In this tutorial , we will be demonstrating how to make a REST service in Spark using Akka-http as a side-kick  😉  and Cassandra as the data store. We have seen the power of Spark earlier and when it is combined with Cassandra in a right way it becomes even more powerful. Earlier we have seen how to build Rest Api on Spark and Couchbase Continue Reading

Integrate JWT with Akka HTTP

In this article we will discuss about , how to implement  authentication or authorization in Akka HTTP routes using JWT . As we know Akka HTTP is full implementation of  server  and client side HTTP stack on top Akka actor and Akka stream . Now Let’s  we  talk about JWT. what is JWT ? JSON Web Token (JWT) is an open standard (RFC 7519) that defines Continue Reading

Mocking Mail API in Scala

Few days ago I was working on a Mailing API of my project and used javax-mail API but encountered the problem of how to write unit test cases for that without actually mocking the mail. I searched for it but was unable to find a proper documentation about mocking a mailing service. I tried few methods but some were confusing and some were really complex. Then I Continue Reading

Data Driven Test Automation with Apache POI (Part-1)

What is Data Driven Test Automation? To test the functionality of an application it is requires to test with multiple input values. Data driven test automation allows to create test scripts where test data or input/output values are read from an external data files instead of using hard code each time the test run. Data driven test framework allows user to separate their data to Continue Reading

Best Practices for Using Slick on Production

Slick is most popular library for relational database access in Scala ecosystem. When we are going to use Slick for production , then some questions arise  like where should the mapping tables be defined and how to join with other tables, how to write unit tests. Apart from this there is lack of clarity on the design guidelines. In this blog post , I am Continue Reading

%d bloggers like this: