• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-java / #16562

18 Oct 2024 07:00PM UTC coverage: 12.614% (-0.1%) from 12.74%
#16562

push

github

web-flow
Merge pull request #1897 from stripe/latest-codegen-beta

Update generated code for beta

49 of 1978 new or added lines in 47 files covered. (2.48%)

68 existing lines in 20 files now uncovered.

18798 of 149026 relevant lines covered (12.61%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/stripe/examples/ExampleTemplate.java
1
package com.stripe.examples;
2

3
/**
4
 * This is a template for defining new examples. It is not intended to be used directly.
5
 *
6
 * <p>describe what this example does
7
 *
8
 * <p>In this example, we:
9
 *
10
 * <ul>
11
 *   <li>key step 1
12
 *   <li>key step 2
13
 *   <li>...
14
 * </ul>
15
 *
16
 * <p>describe assumptions about the user's stripe account, environment, or configuration; or things
17
 * to watch out for when running
18
 */
19
public class ExampleTemplate {
20

21
  @SuppressWarnings("unused")
22
  private String apiKey;
23

NEW
24
  public ExampleTemplate(String apiKey) {
×
25
    this.apiKey = apiKey;
×
26
  }
×
27

28
  @SuppressWarnings("CatchAndPrintStackTrace")
29
  public void doSomethingGreat() {
30

31
    try {
32
      System.out.println("Hello World");
×
33
      // StripeClient client = new StripeClient(this.apiKey);
34
      // client.v2()....
35
    } catch (Exception e) {
×
36
      e.printStackTrace();
×
37
    }
×
38
  }
×
39

40
  public static void main(String[] args) {
41
    String apiKey = "{{API_KEY}}";
×
42

NEW
43
    ExampleTemplate example = new ExampleTemplate(apiKey);
×
44
    example.doSomethingGreat();
×
45
  }
×
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc