Salesforce Test class注意事项
在 Salesforce 中开发,Test Method 肯定是少不了的,因为在部署的时候 Production 是要求测试代码的整体覆盖率是不能小于 75% 的,而且 Trigger 是不能没有对应的测试代码的。测试代码的作用是什么,既然必须要写测试代码, 怎么才能让测试代码发挥它应该拥有的价值?这里给大家提供一些写测试代码的基本原则和注意的知识点。4 Goals1. Positive Behavior(测试正确行为)写测试代码首先验证一下的正确逻辑,尽量保证把所有的业务逻辑的代码覆盖到。比如代码里有 try catch 的话,Postitive 就是需要先把 tr...
老教授从console.log说起(上)
console.log,作为一个前端开发者,可能每天都会用它来分析调试,但这个简单函数背后不简单那一面,你未必知道……基础首先,简单科普这个函数的作用。前端开发者可以在js代码的任何部分调用console.log,然后你就可以在浏览器的开发者控制台里,看到这个函数调用的那一瞬间你指定的变量或表达式的值。最基本的调用方法:12345678910console.log('123');// 123console.log('1', '2', '3');// 1 2 3console.log('1\n2\n3\n');// 1// 2// 3我们可以通过上面的方式进行...
salesforce Milestone clock is not running
0down voteacceptedI was able to find out what is the issue is. Actually all my milestone are currently using US Business hour and in that business hour there I have not given any time for the weekends, so today is Saturday and thats why milestones time is not showing. So issues at all.
Centos 7安装SHIPYARD中文版
安装/升级你的Docker客户端推荐安装1.10.0以上版本的Docker客户端。您可以通过阿里云的镜像仓库下载:docker-engine、docker-ce或执行以下命令:curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -如何使用Docker加速器针对Docker客户端版本大于1.10的用户您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器:sudo mkdir -p /etc/dockersudo tee /etc/docker/daemon.json <<-'EOF'{"registry-mirrors": ["https://xxx.mirror.aliy...
salesforce apex traced the number of query
System.debug('Current Query number:'+ Limits.getQueries())
salesforce执行apex job的两种方法
方法一,立即执行:YourScheduleApexClass s=new YourScheduleApexClass();s.excute(null) ;方法二:定时执行SchedulerClassName sch = new SchedulerClassName();String cronExpression = '0 30 8 1 * * '; // 8:30am every 1st day of the monthSystem.schedule('EVP Dashboard', cronExpression, sch);
WPF滚动
<UserControlx:Class="WpfApplication1.UserControl1"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"mc:Ignorable="d"d:DesignHeight="30"d:DesignWidth="300"Loaded="UserControl_Loaded"><CanvasClipToBounds="True"x:Name="canvas"><Canvas.Resources><Sto...
微信小程序之scroll-view的坑
1.水平滑动的scroll-view 水平滑动的scroll-view,需要给scroll-view一个固定的宽度,设置属性scroll-x,并且设置样式white-space:nowrap;(这个很重要,不设置这个样式,无法完成scroll-view的效果,我的坑也是遇在这了,三个条件缺一不可) 2.竖直滑动的scroll-view 竖直滑动的scroll-view,需要给scroll-view一个固定的高度,设置属性scroll-y,并且设置样式white-space:nowrap;(三个条件缺一不可)
nginx反向代理wss
先上NGINX配置:worker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 443 ssl http2; server_name localhost; ssl_certificate aa.pem; ssl_certificate_key aa.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_protocols TLSv1TLSv1....
微信小程序支付,微信支付
微信小程序支付绕坑指南步骤A:小程序向服务端发送商品详情、金额、openidB:服务端向微信统一下单C:服务器收到返回信息二次签名发回给小程序D:小程序发起支付E:服务端收到回调 首先准备以一下信息小程序发送小程序向服务端发送商品详情、金额、openid服务端接收小程序发来的信息判断信息是否为空,不为空将要参与签名的信息组合成键值对,准备签名签名算法(首先进行排序,连接商户KEY,进行MD5计算,结果转成大写)将计算好的MD5值也加入到之前的键值对中,并且将整个键值对转成XML格...