Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
2 answers
302 views

Replace words from a file with words from a dictionary based file

I'm working on a coding challenge that tasks me with taking a file with a dictionary, reading from it, and then replacing the matching words from the input file with what is found in the dictionary. I ...
apex's user avatar
  • 33
3 votes
1 answer
165 views

Simple Wizard Goblin User Story Test Driven Development

I have written this to practice Test Driven Development. I would like to know if the process is right and how it could be improved. Problem Statement : A wizard can cast spell on goblin and make his ...
Vimde's user avatar
  • 85
6 votes
2 answers
12k views

Stack data structure unit testing

I have this contract: public interface Stack<T> { void push(T object); T pop(); int size(); } I am curious what you think about my test of the <...
magulla's user avatar
  • 181
2 votes
1 answer
166 views

Connecting to an insurance database

I'm developing an Android application which would remotely connect to an insurance database and perform some basic CRUD operations and I'd like to learn how to keep clean app's architecture from ...
apex39's user avatar
  • 322
10 votes
1 answer
1k views

Markup calculator application using MVC

I want to make sure that the code is correct in terms of its design, code correctness, best practices & Junit testing. The complete description is given below: Functioning of the app quickly ...
fscore's user avatar
  • 634
3 votes
2 answers
7k views

Mocking utility class for database testing

I have these classes that have a boilerplate way of initialization. So, instead of writing it each time, I wrote a class called MockUtil.java, and I put the ...
would_like_to_be_anon's user avatar
2 votes
2 answers
269 views

How to use inversion of control within a strategy when using the strategy pattern

I am creating a skeleton application to demonstrate use of the Strategy design pattern and inversion of control inside a Strategy. The application is the backend of a simple board game, which also ...
Parag's user avatar
  • 123