Giter Site home page Giter Site logo

hellocs3250's People

Contributors

chrisreylo73 avatar entrylevelcs avatar iglooghost avatar jbae-89 avatar jody avatar robo-jones avatar

Watchers

 avatar  avatar  avatar

hellocs3250's Issues

sayHelloNullTest fails

sayHello method cannot accept a null and thus when ran with jUnit the sayHelloNullTest method fails to run.

[User Story] Expand basic tests for HelloWorld.sayHello method

As a maintainer,
I want the basic tests for the sayHello method in HelloWorld to be more robust,
so that I can have greater confidence when I use them for regression testing after I make updates to the code.

The existing tests for sayHello are limited, each uses only exactly length 5 strings of lower case letters from the first 128 characters of UTF-8.

It would be beneficial to have tests that check more cases, such as very long strings and strings with characters outside of the 26 lower-case letters.

References:
https://en.wikipedia.org/wiki/UTF-8

Acceptance Criteria

  • HelloWorldTest provides minimum of 10 tests for unique non-null and non-empty strings.
  • HelloWorldTest provides a test for a string of at least one-quarter the maximum possible length string in Java.
  • HelloWorldTest provides tests for a strings using non-printing ASCII compatible characters.
  • HelloWorldTest provides tests for a strings using multi-byte UTF-8 characters.

Add subclass to demonstrate inheritance and overriding

As an instructor, I want a subclass of HelloWorld that can be used to demonstrate inheritance and overriding.

Acceptance Criteria:
√ A subclass of HelloWorld exists
√ The subclass demonstrates calling an inherited method [partial; could use enhancement]
√ The subclass demonstrates overriding an inherited method
√ There is a unit test class for the subclass
x Tests within the unit test class exercise the functionality of the subclass [see: Issue #36]

Refactor HelloWorld.java and HelloAnyone.java

Objective:
Refactor the HelloWorld.java and HelloAnyone.java to facilitate future changes that would allow for strings other than "world" to be passed to the toWhom argument of the sayHello method.

Background:
The current call to the sayHello method uses a hard-coded string. A variable would allow for different strings to be passed to the method without changing the individual function calls. This would improve continuity in the code. See issue #30

Suggested Approach:
Refactor so that a single common stem is used, modified as necessary to reflect the parameter value.

References:
https://www.refactoring.com

re-name unnecessary test

Unnecessary is misleading unless truly is 'unnecessary', we suggest renaming to checkIfNull or checkNotNull!

[User Story]HelloWorldTest problems and Redundancies

-The unnecessaryTest on line 35 is redundant since the object is never null, create a more complex test to fully ensure code is working properly.
-Getting run problems such as, "Cannot resolve symbol" etc.

README is inadequate

As a perspective contributor,
I want to learn the following from the README

  • the intent of the project,
  • how to build the product, and
  • how to verify the correctness of the source code (run tests and code convention checks)

so that I can efficiently get started contributing to the project.

Acceptance Criteria:

  • The README contains a description of the purpose of the project
  • The README identifies dependencies, including runtime environments, development tools, and libraries not included in the repository, as well as information on how to obtain and install such dependencies
  • The README contains instructions on how to build and run the product
  • The README contains instructions for running the test suite and viewing results
  • The README contains instructions for running the style checker and viewing the results

Build.xml does not create reports\testresults

When using the "ant test" command to run unit tests, the following error is produced:

C:\Users\train\Documents\Computer Science\helloCS\helloCS3250\build.xml:119:
C:\Users\train\Documents\Computer Science\helloCS\helloCS3250\reports\testresults does not exist.

As a workaround, you can create the folder yourself in the terminal or with file explorer, and it will "run" and output results to the directory.

Java 14 or higher not supported

While running the program if the version of java is 14 or higher, the program won't run. A window with the legend "Java: error: release version 14 not supported" so for this project will be necessary to run a lower version of Java.

Failed to Build ant test

Bug Description: When trying to run the ant test test from the main project it will fail to build. specifically stating that the "/home/dev/cs3250/helloCS3250/build.xml:119 /home/dev/cs3250/helloCS3250/reports/testresults does not exist." So the xml file is not creating the directory to store the test results report.

To Reproduce: To repeat this error follow the instruction in the project readme. More specifically type in "ant test" in the terminal after copying and compiling the project.

Expected behavior: A test report should be generated as an html file and placed in the reports directory.

System info:
OS: Ubuntu V21.01
Browser: Mozilla
Version: helloCS3250 current main version.

Additional Context: This appears to be an issue with the XML no creating the reports directory when the project is run. The XML file should be creating the the reports directory with the other directories when the project is cleaned and rebuilt.

Failed Junit Test

In HelloWorldTest.java, there is a failed test: sayHelloEmptyStringTest() ✘ expected: <Hello> but was: <Hello >

Failed JUnit Test

A JUnit test fails because there is not a null parameter version of the method.

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.