Skip to content

Learn. Write. Repeat.

  • Technical books I recommend
  • Food for thought
  • About me
  • Human engineering books I recommend
Git

GitUP

March 30, 2017August 4, 2017 sergiuoltean

A less known interface for Git. Looks cool. Its main drawback which is for a majority of users a blocker it that works only on OSX. Luckily I enjoy using OSX so I must share this cool thing with the other mac guys. Its selling point is: "You're here to write code, not meditate on… Continue reading GitUP

Leave a comment
Maven

Maven. Share properties between modules.

March 27, 2017August 15, 2018 sergiuoltean

We have the following situation:  a set of global properties and multiple maven modules. Some properties are required by something inside a module, others are required by another module. How can we achieve this?  One way would be to have a copy of the properties available for each module. It will work, but it's not… Continue reading Maven. Share properties between modules.

1 Comment
Git

Git. To rebase or not to rebase?

March 20, 2017March 23, 2017 sergiuoltean

This is the question. Git has been around from some time now and offers lots of functionality in comparison with SVN. If you're not using git by now, you are a dinosaur. But this is not about git vs SVN. It's about merging vs rebasing. When to use one or the other. There is a… Continue reading Git. To rebase or not to rebase?

2 Comments
Test your code

Testing concurrent code

February 12, 2017February 13, 2017 sergiuoltean

Let's get to some interesting stuff. How difficult is to test your concurrent code? The answer: very. Still there must be some ways of testing it, right? Well there are things that can help you. One of them is Thread Weaver. How does it work? Using byte-code instrumentation it will run your method that you… Continue reading Testing concurrent code

2 Comments
Test your code

Mutation testing performance

January 17, 2017January 18, 2017 sergiuoltean

In this post I wanna write about the mutation testing performance. If you want to refresh your memory on mutation testing you can check my previous post. We saw there that mutation testing takes lots of time to run and that we cannot run it every time. I've described there some ways to improve the… Continue reading Mutation testing performance

Leave a comment
Test your code

Power Mocks

October 26, 2016April 26, 2017 sergiuoltean

Mockito is cool, but in some cases workarounds are required to resolve certain situations. These workarounds force you to alter your code is order to be testable, but for a person who reads the code may find some of it not that useful, until he is explained why it was done this way. I will describe some… Continue reading Power Mocks

Leave a comment
Test your code

Test doubles

October 21, 2016November 1, 2016 sergiuoltean

"Test Double is a generic term for any case where you replace a production object for testing purposes". This is how Martin Fowler describes it. They are mainly used in unit tests, when the unit must be tested in isolation. A little background If we are not testing the component in isolation, it's hard to cover… Continue reading Test doubles

1 Comment
Test your code

Fluent assertions in Junit

October 11, 2016November 1, 2016 sergiuoltean

Yes. Still Junit. We're not done with it yet. This is about how to make assertions using AssertJ. It's a cool library which is really easy to use and helps our tests look fluent and nicer. I'm not gonna go over all assertions that are available, I will just focus on some of them that… Continue reading Fluent assertions in Junit

2 Comments
Test your code

BDD with Junit

October 3, 2016November 1, 2016 sergiuoltean

Just recently, on 18th of September 2016 JGiven was released. So I wanted to know how does it look like and what can we do with it. As many of you already know BDD stands for Behavioural Driven Development. That means writing the test in a such a way that non-technical people(eg Business Analysts) would… Continue reading BDD with Junit

Leave a comment
Test your code

Junit Rules

September 27, 2016November 1, 2016 sergiuoltean

While this can be read in many ways, this is strictly referring to the @Rule annotation and TestRule interface that are  available for use in Junit. These are not widely used but they do help us in setting up tests and making the code more elegant and less verbose. What are they good for? Well they are good… Continue reading Junit Rules

Leave a comment

Posts navigation

Older posts
Newer posts

Search

Categories

  • Architecture (3)
  • Database (3)
  • Deployment (1)
  • Design (3)
  • drools (3)
  • Food for thought (8)
  • Git (3)
  • human engineer (1)
  • Java (10)
  • Java Messages (1)
  • Kafka (2)
  • Maven (4)
  • Microservices (18)
  • Mysql (1)
  • Security (1)
  • Test your code (15)

Follow me on Twitter

My Tweets
Follow Learn. Write. Repeat. on WordPress.com
Blog at WordPress.com.
Learn. Write. Repeat.
Blog at WordPress.com.
  • Subscribe Subscribed
    • Learn. Write. Repeat.
    • Already have a WordPress.com account? Log in now.
    • Learn. Write. Repeat.
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Cookie Policy