Professional Documents
Culture Documents
Gamification Framework
Gamification Framework
Gamification Framework
Goal Frameworks are more important for the extension points that they have
than from the functionality that they provide. The goal of this lab is to create
a framework for gamification, using the techniques learned to create the
extension points.
General Vision: The following are some classes from the framework API:
Test cases: These are some common usages of the framework that you can
use as a reference to create your tests: (a) gain points when you execute a
given task; (b) lose points depending on the task return; (c) win a badge
when the task throw an exception;
Spec Task (interface): Have an execute() method that return Object and can
throw FailedExecutionException.
User (class): Should provide the user name, how many points and the
badges that the user have. Should also provide methods to add and remove
points and add and remove badges. It also needs to be able to return the
last number of points set and the last badge that he got. The student should
design the class API.
Delivery This exercise can be delivered with just the code and also with the
documentation:
Code – You should upload a .zip file with the complete source code
developed – also add a screenshot of the tests running.
Mock Objects: You can create the Mock objects yourself, but if you prefer
you can also use a mock framework such as JMock or Mockito.
Rules You cannot do: Copy any part of the code created by another student; Look
at the code of another student before finishing; copy the API design of
another student.
You can do: Ask help for debugging; help another student to debug after
finishing your own.