Git Product home page Git Product logo

unit-2-assessment's Introduction

Unit 2 Assessment Test

This is designed to run with Android Studio with Unit Testing support enabled in Android Studio's Gradle settings.

Watch what this app does here:

unit-2-asssessment

Importing

Import the project into Android Studio by selecting Import Project and selecting the project's build.gradle. When prompted, you can pick the default gradle wrapper.

Running Tests

To run the test , open Android Studio's Build Variants pane and change the option Test Artifact to Unit Tests. You can then right click on Unit1AndroidAssessmentTests and run the tests.

Your run configuration should look like this:

.

NetworkActivityTests

You can run the following commands in the terminal with the curl command.

HTTP GET request we'll be using:

$ curl "https://httpbin.org/get?custname=james+dean&custtel=347-841-6090&custemail=hello%40c4q.nyc&size=small&topping=cheese&delivery=18%3A15&comments=Leave+it+by+the+garage+door.+Don%27t+ask+any+questions."

HTTP POST request we'll be using:

$ curl -X POST \
    -d "custname=james dean" \
    -d "custtel=347-8431-6090" \
    -d "[email protected]" \
    -d "size=small" \
    -d "topping=cheese" \
    -d "delivery=22:15" \
    -d "comments=Leave it by the garage door. Don't ask any questions." \
    https://httpbin.org/post

Grading

Do work on each part before trying to get any part in its entirety. In order to pass the exam, you must make an effort in each of the four parts.

  • To pass 1, you must use the adapter pattern correctly.
  • To pass 2, you must make the network call off the UI thread.
  • In part 3, focus on tests 18 and 19. To pass, show us you know how to read and write to/from storage.
  • To pass 4, you must use the Notification Builder pattern correctly.

When you are done, go outside and talk to a TA. Even if no tests are passed, the TA can make judgements about your code and determine if you understand this material well enough to move on.

unit-2-assessment's People

Contributors

amyquispe avatar dshen6 avatar jrodbx avatar shurane avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.