This is the second part of my blog series which focuses on the mocking framework Mockito and its interaction with Scala and ScalaTest . This time its all about testing Scala functions. Personally I learned a lot of Scala's way of handling functions by testing them and I hope people learn something from this blog post as well. Aside from the previous mentioned libraries, ScalaCheck , a property-based testing tool for Scala, is also being used to verify some of the function's behaviour. As in the last part the example project on github is being used to illustrate the examples with actual code.
This is the start of a new blog series which focuses on the mocking framework Mockito and its interaction with Scala and ScalaTest . Each part of the series concentrates on one aspect of testing and explains how the mentioned frameworks facilitate testing in this area. An example project on github illustrates the corresponding code. The first part is an easy start and deals with exceptions.
In this post, I give an introduction to Gremlin-Scala , which aims to be a thin Scala wrapper for Gremlin . Gremlin is a graph DSL for traversing a number of graph databases . The post includes a short introduction to graph databases in general and to the Gremlin project. The focus is Scala example code , which shows how Gremlin-Scala can be used to access the graph databases Neo4j , OrientDb and Tinkergraph and finding the shortest path in a graph.
This post shows how to access the Hadoop distributed Filesystem (HDFS) with Scala . It gives a short introduction to HDFS, explains how to get HDFS running locally and describes an example , which is hosted on Github and allows to save, retrieve and delete files in HDFS.
In this post, I give an overview of my current Vim setup. I use Vim as my main editor for text files, among them also code and especially Scala code. The post introduces the Vim plugins I use, my .vimrc configuration file and shows a way to combine Vim with Eclipse using Eclim . This post had a major update in January 2014. It has inspired a vim-scala-setup project available on Github.
This post explains how to simply start a new Scala project with the Scala build tool (sbt) . Furthermore it describes how to integrate ScalaTest , JUnit and the mocking framework Mockito into the new project and gives some simple usage examples.
This post describes how to deploy a Play application in nginx and enabling Google's mod_pagespeed for it on an Ubuntu Linux server. The deployment of scablo for this blog serves as an example for this post.
This post introduces scablo , which is the web application running this blog. It has been developed by myself and is an ongoing open source project published at github and available under the BSD license . It has been designed to run as a single user blog application targeting developers who want to blog. To facilitate blogging, the blog has its own xml template language called scablo template language (sbtl), in which posts can be written. The technical side is actually pretty interesting as it is using lots of powerful and more recent open source technologies. Among them is Scala , the Play framework , MongoDB , Casbah , nscala-time , Coffeescript , jQuery ( UI ), ( Jasny ) Bootstrap , Font Awesome , Codemirror and Lesscss . This post will be kept up to date.