单元测试框架完成
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Wed Jan 14 12:18:25 GMT 2026
|
||||
#Wed Jan 14 12:40:12 GMT 2026
|
||||
stageCount=0
|
||||
libraryProject=
|
||||
baseVersion=15.0
|
||||
publishVersion=15.0.0
|
||||
buildCount=37
|
||||
buildCount=44
|
||||
baseBetaVersion=15.0.1
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
package cc.winboll.studio.authcenterapp.unittest;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import cc.winboll.studio.authcenterapp.R;
|
||||
import cc.winboll.studio.authcenterapp.activities.BaseWinBoLLActivity;
|
||||
import cc.winboll.studio.libappbase.LogUtils;
|
||||
import cc.winboll.studio.libappbase.ToastUtils;
|
||||
import android.widget.EditText;
|
||||
|
||||
/**
|
||||
* @Author 豆包&ZhanGSKen<zhangsken@qq.com>
|
||||
@@ -13,6 +17,8 @@ public class PingTestActivity extends BaseWinBoLLActivity {
|
||||
|
||||
public static final String TAG = "PingTestActivity";
|
||||
|
||||
EditText etmsg;
|
||||
|
||||
@Override
|
||||
public String getTag() {
|
||||
return TAG;
|
||||
@@ -21,8 +27,18 @@ public class PingTestActivity extends BaseWinBoLLActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_pingtest);
|
||||
|
||||
setContentView(R.layout.activity_ping_test);
|
||||
etmsg = findViewById(R.id.et_msg);
|
||||
}
|
||||
|
||||
public void onPing(View view) {
|
||||
showMessage("onPing");
|
||||
}
|
||||
|
||||
void showMessage(String msg) {
|
||||
etmsg.append(msg);
|
||||
etmsg.append("\n");
|
||||
LogUtils.d(TAG, msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
47
authcenterapp/src/main/res/layout/activity_ping_test.xml
Normal file
47
authcenterapp/src/main/res/layout/activity_ping_test.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FF000000">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Ping Test"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:background="#FF888888"
|
||||
android:gravity="center"/>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0">
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:ems="10"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/et_msg"
|
||||
android:textColor="#FF3BC700"/>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="PING"
|
||||
android:onClick="onPing"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user