Skip to content

Android Basics: Viewmodel and State with Compose #272

@RubbieDabDeb

Description

@RubbieDabDeb

On the "Write Unit Tests for ViewModel" section, in step 4 "Test Strategy", it would be helpful if the following point was updated:

Create a new package com.example.android.unscramble.ui.test under test source set and add file as shown in the following screenshot:

...to include the fact that it needs to be created as a Kotlin class and not a regular Java class. The ensuing compilation errors etc had me totally stumped for a few stressful minutes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions