Giter Club home page Giter Club logo

introsde-2017-assignment-1's Introduction

Giulio Dallatorre [email protected]

PROJECT: The classes are well-separated so not to have interconnections between the modules that would require a lot of duplicated code. It's also organized in packages .people has the main functions .generated are the generated classes from the XSD schema .evaluation contains the evaluation points, 1 for each class .creator contains utility classes to slim the usage of the scripts and application I did My best to follow the EXtreme programming tecniques, providing readable names and refactoring everything in small functions I did developed the project using ~TDD and I am including the TEST src folder.

People Marshaller marshals a people Object into a file or stream (facilitating unitary testing) People Unmarshaller reads a people.xsd-TYPE XML document and unmarshals it in the People class or console output. This class needs some refactoring, as it could also be static. XPath navigator functions is quite challenging to read, every sub-fucntion uses the getPeopleCustomXpathResource function trough executeGenericPeopleXPath. This class manages the exceptions. JSONMarshaller just gets a people object and marshals it into a file or a string.

TESTS: i did written the test mostly before writing the code, as TDD suggests, and in order not to use the filesystem the superclass PeopleTestSuperclass contains several methods to generate a sample XML document in-memory and a custom "StringableOutputStream" which can be printed to console.

EXECUTION: In order to execute the evaluation sequence it is enough to run ant execute.evaluation the script will retrive ivy and all the needed dependency. After that it will launch every single evaluation script (1-6)

If for some reason it's needed to run the tests, the command ant execute.TEST will compile the project including JUNIT and execute all the test cases.

ant clean

will remove the build files and the auto-generated files left over from the evaluation

ant generateSampleXML

will generate a sample xml file containing 20 persons

All the other ant commands are automatically called from the commands listed above.

introsde-2017-assignment-1's People

Contributors

dallatorretdu avatar

Stargazers

Christian avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.