GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Firestore] Need unit testing guidelines · Issue #3098 · googleapis/google-cloud-java

[Firestore] Need unit testing guidelines #3098

New issue
Copy link
New issue
Copy link
Closed
Closed
[Firestore] Need unit testing guidelines#3098
Copy link
Assignees
schmidt-sebastian

Description

@samtstern
samtstern
opened on Mar 28, 2018
Issue body actions

In the google-cloud-firestore package, many of the public API classes are final. In the Android SDK we explicitly made these classes non-final to enable unit testing, with a big warning saying that general purpose subclassing is not supported.

For server-side Java we should do one of:

  1. Un-final the classes
  2. Recommend users to try Mockito 2.0 or PowerMock
  3. Adopt some other method ... maybe see what other Cloud SDKs do for testability

cc @schmidt-sebastian

Activity

  1. schmidt-sebastian
    self-assigned this
    on Mar 28, 2018
  2. schmidt-sebastian commented on Apr 26, 2018

    @schmidt-sebastian
    schmidt-sebastian
    on Apr 26, 2018
    Contributor
    More actions

    Fixed with #3176

  3. schmidt-sebastian
    closed this as completedon Apr 26, 2018
  4. suztomo
    added a commit that references this issue on Mar 9, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-bigquery…

    bf74f07
  5. chingor13
    added 4 commits that reference this issue on Mar 24, 2026

    deps: update slf4j monorepo to v2.0.16 (#3098)

    165e612

    chore(main): release 2.44.0 (#3074)

    65df6fd

    docs(samples): add samples and tests for change streams transaction e…

    ee7fd2c

    chore(main): release 2.52.3 (#3098)

    f902e2a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @schmidt-sebastian
    schmidt-sebastian

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.