Skip to content

Commit

Permalink
Revert "done (#212)"
Browse files Browse the repository at this point in the history
This reverts commit 70b9f5b.
  • Loading branch information
hcsp-bot committed Aug 24, 2020
1 parent 70b9f5b commit bfdb006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/main/java/com/github/blindpirate/extensions/Bridge.java

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/java/com/github/hcsp/encapsulation/Main.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.hcsp.encapsulation;

import com.github.blindpirate.extensions.Bridge;
import com.github.blindpirate.extensions.CaptureSystemOutputExtension;

public class Main {
public static void main(String[] args) {
Expand All @@ -11,6 +11,6 @@ public static Object createCaptureSystemOutputExtension() {
// 因为CaptureSystemOutputExtension是包级私有的,因此无法直接创建它
// https://github.com/blindpirate/junit5-capture-system-output-extension/blob/4ee3aa0a0d9b2610b482e4571ecc33828c60248a/src/main/java/com/github/blindpirate/extensions/CaptureSystemOutputExtension.java#L44
// 想办法绕过这个限制,创建一个这样的实例。提示:你可以创建一些别的类和别的方法,并不一定非要在这个类中完成这件事。祝你好运!
return Bridge.getInstance();
return new CaptureSystemOutputExtension();
}
}

0 comments on commit bfdb006

Please sign in to comment.