input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testReadNextValuesUsesNaNWhenNoMoreBytes ( ) { au . gov . ga . worldwind . common . util . io . FloatReader classUnderTest = FloatReader . Builder . newFloatReaderForStream ( is ) . withGroupValueGap ( 1 ) . withGroupSize ( 101 ) . build ( ) ; float [ ] values = new float [ 101 ] ; for ( int i = 0 ; i < ( values . leng...
org . junit . Assert . assertTrue ( java . lang . Float . isNaN ( values [ 100 ] ) )
testSingleWordQueryInTextFieldUsingKeywordChinese ( ) { java . util . ArrayList < java . lang . String > names = new java . util . ArrayList < java . lang . String > ( java . util . Arrays . asList ( "" ) ) ; edu . uci . ics . texera . dataflow . dictionarymatcher . Dictionary dictionary = new edu . uci . ics . texera ...
org . junit . Assert . assertTrue ( contains )
negativeSkewXTest ( ) { com . itextpdf . kernel . geom . AffineTransform expected = new com . itextpdf . kernel . geom . AffineTransform ( 1.0 , 0.0 , java . lang . Math . tan ( java . lang . Math . toRadians ( ( ( float ) ( com . itextpdf . styledxmlparser . css . util . CssUtils . parseFloat ( "-26" ) ) ) ) ) , 1.0 ,...
org . junit . Assert . assertEquals ( expected , actual )
testCancellation ( ) { int MIN_NUM_TO_RETURN = 5 ; org . genemania . dto . EnrichmentEngineRequestDto request = new org . genemania . dto . EnrichmentEngineRequestDto ( ) ; request . setOrganismId ( org . genemania . engine . actions . ComputeEnrichmentTest . org1Id ) ; request . setOntologyId ( 1 ) ; request . setqVal...
org . junit . Assert . assertNull ( response )
testMapperValidValues ( ) { org . apache . hadoop . mapreduce . Mapper . Context context = mock ( Mapper . Context . class ) ; org . apache . hadoop . mapreduce . Counters counters = new org . apache . hadoop . mapreduce . Counters ( ) ; org . apache . hadoop . mapreduce . Counter counter = counters . findCounter ( Ded...
org . junit . Assert . assertEquals ( 1 , context . getCounter ( DedupRecordCounter . TOTAL_RECORDS_READ ) . getValue ( ) )
updatingToNullNameIgnoresName ( ) { org . candlepin . dto . api . v1 . ConsumerDTO consumer = getFakeConsumerDTO ( ) ; consumer . setName ( "old<sp>name" ) ; org . candlepin . dto . api . v1 . ConsumerDTO updated = new org . candlepin . dto . api . v1 . ConsumerDTO ( ) ; updated . setName ( null ) ; resource . updateCo...
org . junit . Assert . assertEquals ( "old<sp>name" , consumer . getName ( ) )
testEqualityOfIdenticalSubjects ( ) { org . apache . cayenne . event . EventSubject s1 = org . apache . cayenne . event . EventSubject . getSubject ( org . apache . cayenne . event . EventSubjectTest . class , "MySubject" ) ; org . apache . cayenne . event . EventSubject s2 = org . apache . cayenne . event . EventSubje...
org . junit . Assert . assertEquals ( s1 , s2 )
testMask6 ( ) { java . net . InetAddress inet = java . net . Inet6Address . getByName ( "2607:f0d0:1002:0051:0000:0000:0000:0004" ) ; net . tomp2p . peers . IP . IPv6 v6 = net . tomp2p . peers . IP . fromInet6Address ( ( ( java . net . Inet6Address ) ( inet ) ) ) ; java . net . InetAddress inet2 = v6 . toInet6Address (...
org . junit . Assert . assertEquals ( inet , inet2 )
testSetPayloadTransformerPlainText ( ) { setPayloadTransformer . setValue ( org . mule . runtime . core . internal . transformer . simple . SetPayloadTransformerTestCase . PLAIN_TEXT ) ; setPayloadTransformer . initialise ( ) ; when ( mockExpressionManager . isExpression ( org . mule . runtime . core . internal . trans...
org . junit . Assert . assertThat ( response , org . hamcrest . CoreMatchers . is ( org . mule . runtime . core . internal . transformer . simple . SetPayloadTransformerTestCase . PLAIN_TEXT ) )
shouldReturnFalseWhenRemoteDoesNotExist2 ( ) { org . eclipse . egit . core . synchronize . GitResourceVariantComparator grvc = new org . eclipse . egit . core . synchronize . GitResourceVariantComparator ( null ) ; org . eclipse . core . resources . IResource local = mock ( org . eclipse . core . resources . IResource ...
org . junit . Assert . assertFalse ( grvc . compare ( local , remote ) )
defaultForNonExistingWorks ( ) { "<AssertPlaceHolder>" ; } get ( java . lang . String , java . lang . Class ) { java . io . Serializable s = get ( key ) ; if ( s != null ) { try { return clazz . cast ( s ) ; } catch ( java . lang . ClassCastException ignore ) { } } return null ; }
org . junit . Assert . assertThat ( subject . get ( key , value ) , org . hamcrest . CoreMatchers . is ( value ) )
testHostNameProvided ( ) { java . lang . String hostname = "testhost" ; java . lang . String syslogMessage = ( "<11>Mar<sp>22<sp>14:24:49<sp>" + hostname ) + "<sp>last<sp>message<sp>repeated<sp>30<sp>times" ; org . opennms . netmgt . xml . event . Event event = org . opennms . netmgt . syslogd . ConvertToEventTest . pa...
org . junit . Assert . assertEquals ( hostname , eventHostname )
roundTripOfMomentIntervalCollection ( ) { net . time4j . range . MomentInterval i1 = net . time4j . range . MomentInterval . between ( net . time4j . PlainTimestamp . of ( 2014 , 2 , 27 , 0 , 0 ) . atUTC ( ) , net . time4j . PlainTimestamp . of ( 2014 , 5 , 14 , 0 , 0 ) . atUTC ( ) ) ; net . time4j . range . MomentInte...
org . junit . Assert . assertThat ( windows , org . hamcrest . CoreMatchers . is ( ser ) )
createTableSelectAllWithSignlePartitionMySqlTest ( ) { org . verdictdb . core . sqlobject . BaseTable base = new org . verdictdb . core . sqlobject . BaseTable ( "test" , "people" , "t" ) ; org . verdictdb . core . sqlobject . SelectQuery relation = org . verdictdb . core . sqlobject . SelectQuery . create ( java . uti...
org . junit . Assert . assertEquals ( expected , actual )
testBuildWithDisabledSecurityConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . benefit . Benefit context = new org . lnu . is . domain . benefit . Benefit ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>Benefit<sp>e<sp>WHERE<sp>e.status=:status<sp>" ; org . lnu . is . pagination . ...
org . junit . Assert . assertEquals ( expected , actualQuery )
add_string_enablesChaining ( ) { "<AssertPlaceHolder>" ; } add ( java . lang . String ) { hashTable . add ( element , size ( ) ) ; return super . add ( element ) ; }
org . junit . Assert . assertSame ( array , array . add ( "foo" ) )
testUpdate ( ) { com . ewcms . common . dao . model . Model model = new com . ewcms . common . dao . model . Model ( 1 , "test" ) ; dao . persist ( model ) ; model . setTitle ( "test3" ) ; dao . merge ( model ) ; model = dao . get ( 1 ) ; "<AssertPlaceHolder>" ; } getTitle ( ) { return title ; }
org . junit . Assert . assertEquals ( model . getTitle ( ) , "test3" )
xssf ( ) { com . asakusafw . testdriver . excel . ExcelRuleExtractor extractor = new com . asakusafw . testdriver . excel . DefaultExcelRuleExtractor ( ) ; org . apache . poi . ss . usermodel . Sheet sheet = sheet ( "simple.xlsx" ) ; "<AssertPlaceHolder>" ; } supports ( org . apache . poi . ss . usermodel . Sheet ) { i...
org . junit . Assert . assertThat ( extractor . supports ( sheet ) , is ( true ) )
testSaveWorkflowDefinition ( ) { com . liferay . portal . kernel . workflow . WorkflowDefinition workflowDefinition = saveWorkflowDefinition ( ) ; "<AssertPlaceHolder>" ; } saveWorkflowDefinition ( ) { java . io . InputStream inputStream = getResource ( "single-approver-definition.xml" ) ; byte [ ] content = com . life...
org . junit . Assert . assertNotNull ( workflowDefinition )
shouldReturnBothForMd5AndAdler32 ( ) { java . util . Set < org . dcache . util . Checksum > result = org . dcache . util . Checksums . decodeRfc3230 ( "adler32=03da0195,md5=HUXZLQLMuI/KZ5KDcJPcOA==" ) ; java . util . Set < org . dcache . util . Checksum > expected = com . google . common . collect . Sets . newHashSet (...
org . junit . Assert . assertThat ( result , equalTo ( expected ) )
testLog4J ( ) { org . glassfish . hk2 . utilities . binding . AbstractBinder binder = new org . glassfish . hk2 . utilities . binding . AbstractBinder ( ) { @ org . loginject . tests . Override protected void configure ( ) { install ( org . loginject . LogInject . loginject ( org . apache . logging . log4j . Logger . c...
org . junit . Assert . assertEquals ( org . loginject . tests . LogInjectLog4JTest . TestClass . class . getName ( ) , service . logger . getName ( ) )
testGetWrapperProperties ( ) { root . newFile ( "build.gradle" ) ; root . newFile ( "settings.gradle" ) ; root . newFile ( "gradlew" ) ; root . newFile ( "gradlew.bat" ) ; java . io . File wrapperProps = new java . io . File ( root . newFolder ( "gradle" , "wrapper" ) , "gradle-wrapper.properties" ) ; wrapperProps . cr...
org . junit . Assert . assertEquals ( wrapperProps , gf . getWrapperProperties ( ) )
testReverse3 ( ) { org . nd4j . linalg . api . ndarray . INDArray array = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 } ) ; org . nd4j . linalg . api . ndarray . INDArray exp = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , 1 , 2 , 3 , 4 ,...
org . junit . Assert . assertEquals ( exp , rev )
testToMachineDetails_4 ( ) { org . cloudifysource . esc . driver . provisioning . MachineDetailsDocumentConverter fixture = new org . cloudifysource . esc . driver . provisioning . MachineDetailsDocumentConverter ( ) ; com . gigaspaces . document . SpaceDocument document = new com . gigaspaces . document . SpaceDocumen...
org . junit . Assert . assertNotNull ( result )
testJweJwkAesWrap ( ) { java . lang . String address = ( "https://localhost:" + ( org . apache . cxf . systest . jaxrs . security . jose . jwejws . JAXRSJweJwsTest . PORT ) ) + "/jwejwkaeswrap" ; org . apache . cxf . jaxrs . client . JAXRSClientFactoryBean bean = new org . apache . cxf . jaxrs . client . JAXRSClientFac...
org . junit . Assert . assertEquals ( "book" , text )
shouldResolveToNullIfNoActiveContexts ( ) { org . jboss . arquillian . core . impl . ManagerImpl manager = ( ( org . jboss . arquillian . core . impl . ManagerImpl ) ( org . jboss . arquillian . core . spi . ManagerBuilder . from ( ) . create ( ) ) ) ; "<AssertPlaceHolder>" ; } resolve ( java . lang . reflect . Method ...
org . junit . Assert . assertNull ( manager . resolve ( java . lang . Object . class ) )
test_shouldNotUpdateEnvironmentVariableEmptyNewKey ( ) { connect ( ) ; createApplication ( ) ; try { createEnvironmentVariable ( "key" , "value" ) ; org . springframework . shell . core . CommandResult result = updateEnvironmentVariable ( "key" , "" , "value" ) ; "<AssertPlaceHolder>" ; } finally { removeApplication ( ...
org . junit . Assert . assertThat ( result , isFailedCommand ( ) )
testResolvePackageDefaultResources ( ) { final javax . enterprise . inject . spi . Bean moduleServiceBean = ( ( javax . enterprise . inject . spi . Bean ) ( beanManager . getBeans ( org . kie . workbench . common . services . shared . project . KieModuleService . class ) . iterator ( ) . next ( ) ) ) ; final javax . en...
org . junit . Assert . assertNull ( result )
testAddSingle ( ) { instance = org . dayatang . domain . NamedParameters . create ( ) . add ( "id" , 12 ) . add ( "name" , "abc" ) ; "<AssertPlaceHolder>" ; } getParams ( ) { return java . util . Arrays . copyOf ( params , params . length ) ; }
org . junit . Assert . assertEquals ( params , instance . getParams ( ) )
testGetJavaClassByID ( ) { java . lang . String fqn = "java.io.PrintStream" ; org . netbeans . lib . profiler . heap . JavaClass printStream = heap . getJavaClassByName ( fqn ) ; long javaclassId = printStream . getJavaClassId ( ) ; org . netbeans . lib . profiler . heap . JavaClass result = heap . getJavaClassByID ( j...
org . junit . Assert . assertEquals ( javaclassId , result . getJavaClassId ( ) )
resetOrganizationSettings_orgIdParam_Delegation ( ) { container . login ( 1 , org . oscm . internal . usermanagement . ROLE_PLATFORM_OPERATOR ) ; ums . resetOrganizationSettings ( "orgId" ) ; org . mockito . ArgumentCaptor < java . lang . String > orgId = org . mockito . ArgumentCaptor . forClass ( java . lang . String...
org . junit . Assert . assertEquals ( "orgId" , orgId . getValue ( ) )
testDatabaseMetadataUDTs ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( ( "jdbc:relique:csv:" + ( org . relique . jdbc . csv . TestCsvDriver . filePath ) ) ) ; java . sql . DatabaseMetaData metadata = conn . getMetaData ( ) ; java . sql . ResultSet results = metadata . getUDTs ( null ...
org . junit . Assert . assertFalse ( results . next ( ) )
multiLineString ( ) { com . querydsl . sql . spatial . MultiLineString multiLineString = ( ( org . geolatte . geom . MultiLineString ) ( org . geolatte . geom . codec . Wkt . fromWkt ( ( "MULTILINESTRING<sp>(" + ( "(30<sp>10,<sp>40<sp>40,<sp>20<sp>40,<sp>10<sp>20,<sp>30<sp>10),<sp>" + "(20<sp>30,<sp>35<sp>35,<sp>30<sp>...
org . junit . Assert . assertEquals ( geo2 , geo )
testReadObjectClassWithNullContextName ( ) { java . lang . Class < ? > clazz = getClass ( ) ; java . lang . String className = clazz . getName ( ) ; java . lang . String contextName = com . liferay . petra . string . StringPool . NULL ; java . nio . ByteBuffer byteBuffer = java . nio . ByteBuffer . allocate ( ( ( ( cla...
org . junit . Assert . assertSame ( clazz , readClass )
shouldTranslateViewIndexesToOriginal ( ) { long [ ] shape = new long [ ] { 4 , 2 , 3 } ; double [ ] values = new double [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } ; int [ ] [ ] indices = new int [ ] [ ] { new int [ ] { 0 , 0 , 2 } , new int [ ] { 0 , 1 , 1 } , new int [ ] { 1 , 0 , 0 } , new int [ ] { 1 , 0 , 1 } , new ...
org . junit . Assert . assertArrayEquals ( exceptedIdx , originalIdx )
testPackageImport ( ) { org . apache . karaf . packages . core . internal . filter . AndExpression expr = ( ( org . apache . karaf . packages . core . internal . filter . AndExpression ) ( new org . apache . karaf . packages . core . internal . filter . FilterParser ( ) . parse ( "(&(osgi.wiring.package=org.mypackage)(...
org . junit . Assert . assertEquals ( 3 , expr . expressions . length )
itUnregistersServices ( ) { com . mixer . api . services . AbstractService serviceStub = org . mockito . Mockito . mock ( com . mixer . api . services . AbstractService . class ) ; com . mixer . api . services . ServiceManager < com . mixer . api . services . AbstractService > sm = new com . mixer . api . services . Se...
org . junit . Assert . assertNull ( sm . get ( serviceStub . getClass ( ) ) )
loadRetursnNullWhenPatientDoesNotHaveFileObjects ( ) { when ( this . doc . getXObjects ( AdditionalDocumentsController . CLASS_REFERENCE ) ) . thenReturn ( null ) ; org . phenotips . data . PatientData < org . phenotips . data . internal . controller . Attachment > result = this . mocker . getComponentUnderTest ( ) . l...
org . junit . Assert . assertNull ( result )
testRemoveMap ( ) { fs . delete ( p , true ) ; conf . setInt ( TTConfig . TT_INDEX_CACHE , 10 ) ; final int partsPerMap = 100000 ; final int bytesPerFile = partsPerMap * 24 ; final org . apache . hadoop . mapred . IndexCache cache = new org . apache . hadoop . mapred . IndexCache ( conf ) ; final org . apache . hadoop ...
org . junit . Assert . assertEquals ( true , cache . checkTotalMemoryUsed ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . message . boards . model . MBBan missingMBBan = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . liferay . adaptive . ...
org . junit . Assert . assertNull ( missingMBBan )
nodeTypeInheritance ( ) { org . apache . jackrabbit . oak . spi . state . NodeBuilder defn = newLucenePropertyIndexDefinition ( builder , "test" , of ( "foo" ) , "async" ) ; defn . setProperty ( createProperty ( IndexConstants . DECLARING_NODE_TYPES , of ( "nt:hierarchyNode" ) , org . apache . jackrabbit . oak . plugin...
org . junit . Assert . assertNotNull ( planner . getPlan ( ) )
aconvert_null_primitive_noerror ( ) { converter . setThrowError ( false ) ; "<AssertPlaceHolder>" ; } convert ( com . psddev . dari . util . TypeReference , java . lang . Object ) { return ( ( T ) ( convert ( returnTypeReference . getType ( ) , object ) ) ) ; }
org . junit . Assert . assertEquals ( new java . lang . Integer ( 0 ) , converter . convert ( int . class , ( ( java . lang . Object ) ( null ) ) ) )
testWriteShort ( ) { org . omg . CORBA . portable . OutputStream oStream = org . apache . cxf . binding . corba . runtime . CorbaObjectWriterTest . orb . create_output_stream ( ) ; org . apache . cxf . binding . corba . runtime . CorbaObjectWriter writer = new org . apache . cxf . binding . corba . runtime . CorbaObjec...
org . junit . Assert . assertTrue ( ( s == ( shortValue . shortValue ( ) ) ) )
doesNotBackoffBelowOneConnection ( ) { connPerRoute . setMaxPerRoute ( route , 1 ) ; impl . backOff ( route ) ; "<AssertPlaceHolder>" ; } getMaxPerRoute ( org . apache . hc . client5 . http . HttpRoute ) { return pool . getMaxPerRoute ( route ) ; }
org . junit . Assert . assertEquals ( 1 , connPerRoute . getMaxPerRoute ( route ) )
testEmptyList ( ) { org . zeromq . ZFrame frame = new org . zeromq . ZFrame ( new byte [ 1 ] ) ; org . zeromq . proto . ZNeedle needle = new org . zeromq . proto . ZNeedle ( frame ) ; needle . putList ( java . util . Collections . emptyList ( ) ) ; needle = new org . zeromq . proto . ZNeedle ( frame ) ; "<AssertPlaceHo...
org . junit . Assert . assertThat ( needle . getList ( ) , org . hamcrest . CoreMatchers . is ( java . util . Collections . emptyList ( ) ) )
testNullTranslation ( ) { org . apache . storm . kafka . spout . SimpleRecordTranslator < java . lang . String , java . lang . String > trans = new org . apache . storm . kafka . spout . SimpleRecordTranslator ( ( r ) -> null , new org . apache . storm . tuple . Fields ( "key" ) ) ; "<AssertPlaceHolder>" ; } apply ( ja...
org . junit . Assert . assertEquals ( null , trans . apply ( null ) )
testPaddingValidatinfIVInCiphertextConstantKeyAESCBC ( ) { org . meri . matasano . utils . oracle . IVInCiphertextConstantKeyAESCBC cipher = new org . meri . matasano . utils . oracle . IVInCiphertextConstantKeyAESCBC ( new org . meri . matasano . utils . encryption . PadValidatingAESCBC ( ) ) ; java . lang . String so...
org . junit . Assert . assertEquals ( source , org . apache . shiro . codec . CodecSupport . toString ( decryptedOutput ) )
testChar ( ) { java . lang . Class < com . j256 . ormlite . field . types . CharTypeTest . LocalChar > clazz = com . j256 . ormlite . field . types . CharTypeTest . LocalChar . class ; com . j256 . ormlite . dao . Dao < com . j256 . ormlite . field . types . CharTypeTest . LocalChar , java . lang . Object > dao = creat...
org . junit . Assert . assertEquals ( 1 , dao . create ( foo ) )
testUnBindPrivilegeConfiguration ( ) { org . apache . jackrabbit . oak . spi . security . privilege . PrivilegeConfiguration pc = org . mockito . Mockito . mock ( org . apache . jackrabbit . oak . spi . security . privilege . PrivilegeConfiguration . class ) ; securityProvider . bindPrivilegeConfiguration ( pc ) ; secu...
org . junit . Assert . assertNull ( securityProvider . getConfiguration ( org . apache . jackrabbit . oak . spi . security . privilege . PrivilegeConfiguration . class ) )
testColumnsOfDateTime ( ) { methodWatcher . executeUpdate ( "10<sp>|2017-12-05<sp>|2017<sp>|17:11:24<sp>|2017-12-05<sp>17:11:24.0<sp>|2017-12-04<sp>17:11:24.0<sp>|" 1 ) ; methodWatcher . executeUpdate ( "10<sp>|2017-12-05<sp>|2017<sp>|17:11:24<sp>|2017-12-05<sp>17:11:24.0<sp>|2017-12-04<sp>17:11:24.0<sp>|" 5 ) ; method...
org . junit . Assert . assertEquals ( expected , TestUtils . FormattedResult . ResultFactory . toString ( rs ) )
testDiff ( ) { org . openscience . cdk . tools . diff . tree . IDifference result = org . openscience . cdk . tools . diff . tree . DoubleDifference . construct ( "Foo" , 1.0 , 3.0 ) ; "<AssertPlaceHolder>" ; } construct ( java . lang . String , java . lang . Double , java . lang . Double ) { if ( ( first == null ) && ...
org . junit . Assert . assertNotNull ( result )
testCommentStyleInput ( ) { float [ ] [ ] data = new float [ 500 ] [ 500 ] ; nom . tam . fits . Fits f = null ; try { f = new nom . tam . fits . Fits ( ) ; nom . tam . fits . BasicHDU < ? > hdu = nom . tam . fits . FitsFactory . hduFactory ( data ) ; hdu . getHeader ( ) . insertCommentStyle ( "<sp>" , "---------------F...
org . junit . Assert . assertEquals ( 2 , foundComments )
swallowException ( ) { final java . lang . String result = org . kie . workbench . common . stunner . core . graph . util . Exceptions . swallow ( ( ) -> methodThatThrowsException ( ) , org . kie . workbench . common . stunner . core . graph . util . ExceptionsTest . DEFAULT_RESULT ) ; "<AssertPlaceHolder>" ; } methodT...
org . junit . Assert . assertEquals ( result , org . kie . workbench . common . stunner . core . graph . util . ExceptionsTest . DEFAULT_RESULT )
testMultiNormalizerMinMaxScalerNotFitLabels ( ) { org . nd4j . linalg . dataset . MultiNormalizerMinMaxScaler original = new org . nd4j . linalg . dataset . MultiNormalizerMinMaxScaler ( 0.1 , 0.9 ) ; original . setFeatureStats ( java . util . Arrays . asList ( new org . nd4j . linalg . dataset . api . preprocessor . s...
org . junit . Assert . assertEquals ( original , restored )
test ( ) { cn . bc . spider . callable . DomCallable c = new cn . bc . spider . callable . DomCallable ( ) ; c . setMethod ( "get" ) ; c . setGroup ( "baidu" ) ; c . setUrl ( "http://www.baidu.com" ) ; c . setSuccessExpression ( "select(\"#kw\").size()<sp>><sp>0" ) ; cn . bc . spider . Result < org . jsoup . nodes . Do...
org . junit . Assert . assertTrue ( result . isSuccess ( ) )
testRemovePoolWithPresentPool ( ) { org . candlepin . dto . api . v1 . ActivationKeyDTO dto = new org . candlepin . dto . api . v1 . ActivationKeyDTO ( ) ; java . util . Set < org . candlepin . dto . api . v1 . ActivationKeyDTO . ActivationKeyPoolDTO > pools = new java . util . HashSet ( ) ; pools . add ( new org . can...
org . junit . Assert . assertTrue ( dto . removePool ( "test-id-pool-4" ) )
testCalculateAuthorityKeyIdentifier ( ) { java . security . KeyPairGenerator gen = java . security . KeyPairGenerator . getInstance ( "RSA" ) ; java . security . interfaces . RSAPublicKey key = ( ( java . security . interfaces . RSAPublicKey ) ( gen . generateKeyPair ( ) . getPublic ( ) ) ) ; org . bouncycastle . asn1 ...
org . junit . Assert . assertArrayEquals ( expectedKeyIdentifier , actualKeyIdentifier )
test1 ( ) { org . esa . s2tbx . dataio . s2 . l1c . IL1cProductMetadata productMetadata = getUserProduct ( ) ; "<AssertPlaceHolder>" ; } getUserProduct ( ) { org . esa . s2tbx . dataio . s2 . l1b . IL1bProductMetadata productMetadata = org . esa . s2tbx . dataio . s2 . l1b . L1bMetadataFactory . createL1bProductMetadat...
org . junit . Assert . assertNotNull ( productMetadata )
immediateApplyThrows ( ) { doThrow ( eu . toolchain . concurrent . AbstractImmediateTest . cause ) . when ( fn ) . apply ( from ) ; "<AssertPlaceHolder>" ; } thenApplyCompleted ( java . util . function . Function , T ) { final U result ; try { result = fn . apply ( value ) ; } catch ( final java . lang . Exception e ) ...
org . junit . Assert . assertThat ( base . thenApplyCompleted ( fn , from ) , org . hamcrest . core . Is . is ( new eu . toolchain . concurrent . ImmediateFailed ( caller , eu . toolchain . concurrent . AbstractImmediateTest . cause ) ) )
customType ( ) { java . io . File out = folder . newFile ( ) ; int testCount = 1000 ; java . util . List < org . apache . jackrabbit . oak . commons . sort . ExternalSortTest . TestLine > testLines = new java . util . ArrayList ( 1000 ) ; for ( int i = 0 ; i < testCount ; i ++ ) { testLines . add ( new org . apache . j...
org . junit . Assert . assertEquals ( testLines , linesFromSortedFile )
testNoObject ( ) { java . lang . String name = gateway . putNewObject ( entryPoint . getNewExample ( ) ) ; try { gateway . invoke ( "method1" , ( name + "bob" ) , null ) ; org . junit . Assert . fail ( ) ; } catch ( py4j . Py4JException pe ) { "<AssertPlaceHolder>" ; } } invoke ( java . lang . Object , java . lang . re...
org . junit . Assert . assertTrue ( true )
shouldDetermineIfWorkingDay ( ) { java . util . Calendar holiday = toCalendar ( "01-Nov-2010" ) ; org . joda . time . DateTime holidayAsDateTime = new org . joda . time . DateTime ( holiday . getTime ( ) . getTime ( ) ) ; java . lang . String holidayAsString = holidayAsDateTime . toLocalDate ( ) . toString ( ) ; when (...
org . junit . Assert . assertThat ( holidayService . isWorkingDay ( holiday , officeId ) , org . hamcrest . Matchers . is ( true ) )
testGetTitle ( ) { uk . ac . ebi . ep . ebeye . protein . model . EntryTest . LOGGER . info ( "getTitle" ) ; java . lang . String expResult = "cGMP-specific<sp>3',5'-cyclic<sp>phosphodiesterase" ; java . lang . String result = instance . getTitle ( ) ; "<AssertPlaceHolder>" ; } getTitle ( ) { return title ; }
org . junit . Assert . assertEquals ( expResult , result )
ShouldGetArrayByIndexAndCountForNull ( ) { org . atomhopper . jdbc . query . PostgreSQLTextArray array = new org . atomhopper . jdbc . query . PostgreSQLTextArray ( null ) ; "<AssertPlaceHolder>" ; } getArray ( long , int ) { return ( stringArray ) == null ? null : java . util . Arrays . copyOfRange ( stringArray , ( (...
org . junit . Assert . assertNull ( array . getArray ( 0 , 1 ) )
test3b ( ) { final java . util . List < org . eclipse . packagedrone . repo . channel . ArtifactInformation > r = org . eclipse . packagedrone . repo . adapter . p2 . internal . servlet . MavenLocator . findByMavenCoordinates ( org . eclipse . packagedrone . repo . adapter . p2 . internal . servlet . MavenLocatorTest ....
org . junit . Assert . assertTrue ( r . isEmpty ( ) )
testGetSetId ( ) { java . lang . String expectedId = "expectedId" ; com . microsoft . windowsazure . services . media . models . ContentKeyInfo contentKeyInfo = new com . microsoft . windowsazure . services . media . models . ContentKeyInfo ( null , new com . microsoft . windowsazure . services . media . implementation...
org . junit . Assert . assertEquals ( expectedId , actualId )
testDescribeErrorLogs ( ) { try { com . fit2cloud . aliyun . rds . model . request . DescribeErrorLogsRequest request = new com . fit2cloud . aliyun . rds . model . request . DescribeErrorLogsRequest ( ) ; request . setDBInstanceId ( dBInstanceId ) ; java . util . Date date = new java . util . Date ( ) ; java . lang . ...
org . junit . Assert . assertTrue ( true )
testParseXmlInZip ( ) { final java . io . File newZipFile = createTempFile ( ) ; final java . lang . String xmlFilePath = ( "zip:file:" + ( newZipFile . getAbsolutePath ( ) ) ) + "!/read-xml-tests/file1.xml" ; final org . apache . commons . vfs2 . FileSystemManager manager = org . apache . commons . vfs2 . VFS . getMan...
org . junit . Assert . assertNotNull ( document )
uploadMultipleRules ( ) { org . candlepin . model . Rules rules = new org . candlepin . model . Rules ( "//<sp>Version:<sp>5.1000\n//<sp>rules1<sp>" ) ; rulesCurator . update ( rules ) ; org . candlepin . model . Rules rules2 = new org . candlepin . model . Rules ( "//<sp>Version:<sp>5.1001\n//<sp>rules2<sp>" ) ; rules...
org . junit . Assert . assertEquals ( rules2 . getRules ( ) , updateRules . getRules ( ) )
testFormatDate ( ) { javax . jcr . Value dateV = valueFactory . createValue ( java . util . Calendar . getInstance ( ) ) ; java . lang . String dateString = dateV . getString ( ) ; "<AssertPlaceHolder>" ; } format ( javax . jcr . Value ) { switch ( value . getType ( ) ) { case javax . jcr . PropertyType . STRING : case...
org . junit . Assert . assertEquals ( ( ( "xs:dateTime('" + dateString ) + "')" ) , org . apache . jackrabbit . oak . security . user . query . QueryUtil . format ( dateV ) )
testToDBObject ( ) { final org . apache . rya . mongodb . document . visibility . DocumentVisibility dv = new org . apache . rya . mongodb . document . visibility . DocumentVisibility ( "A" ) ; final com . mongodb . BasicDBObject dbObject = org . apache . rya . mongodb . document . visibility . DocumentVisibilityAdapte...
org . junit . Assert . assertEquals ( expected , dbObject )
testEmptyOriginalMessageId_assertFalse ( ) { new org . nhindirect . common . tx . impl . RESTTxServiceClient_suppressNotificationTest . TestPlan < org . nhindirect . common . tx . model . Tx > ( ) { @ org . nhindirect . common . tx . impl . Override protected boolean suppressNotification ( org . nhindirect . common . t...
org . junit . Assert . assertFalse ( b )
testCannotFindWidget ( ) { org . eclipse . swt . widgets . Widget result = itemHeightService . findWidget ( "bar" ) ; "<AssertPlaceHolder>" ; } findWidget ( java . lang . String ) { org . eclipse . swt . widgets . Display display = org . eclipse . swt . widgets . Display . getCurrent ( ) ; org . eclipse . swt . widgets...
org . junit . Assert . assertNull ( result )
testStrictHostChecking ( ) { java . io . File knownHostsFile = testFolder . newFile ( "hosts" ) ; com . google . common . io . Files . write ( getHostsFileEntry ( ) , knownHostsFile ) ; com . streamsets . pipeline . lib . remote . TestSFTPRemoteConnector . SFTPRemoteConnectorForTest connector = new com . streamsets . p...
org . junit . Assert . assertEquals ( 0 , issues . size ( ) )
testOr1 ( ) { com . liferay . dynamic . data . mapping . expression . internal . DDMExpressionImpl < java . lang . Boolean > ddmExpression = createDDMExpression ( "2<sp>>=<sp>1<sp>||<sp>1<sp><<sp>0" ) ; "<AssertPlaceHolder>" ; } evaluate ( ) { java . util . stream . Stream < java . lang . reflect . Method > methodStrea...
org . junit . Assert . assertTrue ( ddmExpression . evaluate ( ) )
test_JLS_13_4_3 ( ) { japicmp . model . JApiClass publicToPrivateInnerClass = getJApiClass ( japicmp . test . CompatibilityChangesTest . jApiClasses , "japicmp.test.ClassModifier$PublicToPrivateInnerClass" ) ; "<AssertPlaceHolder>" ; } isBinaryCompatible ( ) { return true ; }
org . junit . Assert . assertThat ( publicToPrivateInnerClass . isBinaryCompatible ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testFromEbXMLEmpty ( ) { org . openehealth . ipf . commons . ihe . xds . core . transform . requests . EbXMLSubmitObjectsRequest ebXML = transformer . toEbXML ( new org . openehealth . ipf . commons . ihe . xds . core . requests . RegisterDocumentSet ( ) ) ; org . openehealth . ipf . commons . ihe . xds . core . reques...
org . junit . Assert . assertEquals ( new org . openehealth . ipf . commons . ihe . xds . core . requests . RegisterDocumentSet ( ) , result )
testCustomBehaviour ( ) { final java . util . List < java . lang . String > labels = new java . util . ArrayList < java . lang . String > ( ) ; java . awt . Graphics2D graphics = org . mockito . Mockito . mock ( java . awt . Graphics2D . class ) ; org . geotools . renderer . label . LabelCacheImpl myCache = new org . g...
org . junit . Assert . assertEquals ( 1 , labels . size ( ) )
testGetConsoleConfig ( ) { org . pentaho . platform . config . IConsoleConfig consoleConfig = appConfigProperties . getConsoleConfig ( ) ; "<AssertPlaceHolder>" ; } getConsoleConfig ( ) { if ( ( consoleConfig ) == null ) { try { consoleConfig = new org . pentaho . platform . config . ConsoleConfigXml ( new java . io . ...
org . junit . Assert . assertNotNull ( consoleConfig )
test1a ( ) { com . milaboratory . core . alignment . kaligner1 . KAlignerParameters parameters = com . milaboratory . core . alignment . kaligner1 . KAlignerParameters . getByName ( "default" ) ; com . milaboratory . core . alignment . kaligner1 . KAlignerParameters override = com . milaboratory . mixcr . cli . JsonOve...
org . junit . Assert . assertEquals ( expected , override )
testWithdrawIn20SecondAfterCreditCard ( ) { System . out . println ( "**<sp>Placing<sp>a<sp>Withdraw<sp>after<sp>a<sp>Credit<sp>Card<sp>transaction<sp>in<sp>more<sp>than<sp>10<sp>seconds<sp>**" ) ; org . jboss . quickstarts . brms . cep . model . Transaction t1 = new org . jboss . quickstarts . brms . cep . model . Tra...
org . junit . Assert . assertFalse ( t2 . isDenied ( ) )
testUnicodeEmptyString ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; java . lang . String inFile = "japanese_text.pdf" ; com . itextpdf . text . pdf . PdfReader p = com . itextpdf . testutils . TestResourceUtils . getResourceAsPdfReader ( this , inFile ) ; com . itextpdf . text . pdf . pa...
org . junit . Assert . assertEquals ( result , origText )
whenAddAutoInTreeWeShouldGetArraySizeByCountItemInTree ( ) { ru . szhernovoy . tree . SimpleTree < java . lang . Integer > simple = new ru . szhernovoy . tree . SimpleTree ( ) ; for ( int index = 0 ; index < 35000 ; index ++ ) { simple . addChild ( new ru . szhernovoy . tree . Leaf < java . lang . Integer > ( ) , index...
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( control ) )
testListTables ( ) { com . google . common . collect . ImmutableList < java . lang . String > tableIdList = com . google . common . collect . ImmutableList . of ( com . google . cloud . bigtable . grpc . TestBigtableTableAdminClientWrapper . TEST_TABLE_ID_1 , com . google . cloud . bigtable . grpc . TestBigtableTableAd...
org . junit . Assert . assertEquals ( tableIdList , actualResponse )
writeStringToFileWithEncoding_WithAppendOptionTrue_ShouldNotDeletePreviousFileLines ( ) { java . io . File file = org . apache . maven . shared . utils . testhelpers . FileTestHelper . newFile ( tempFolder , "lines.txt" ) ; org . apache . maven . shared . utils . io . FileUtils . fileWrite ( file , null , "This<sp>line...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
assertGetAggregationDistinctColumnIndexByColumnLabel ( ) { int actual = distinctQueryMetaData . getAggregationDistinctColumnIndex ( "a" ) ; "<AssertPlaceHolder>" ; } getAggregationDistinctColumnIndex ( java . lang . String ) { for ( java . util . Map . Entry < java . lang . Integer , java . lang . String > entry : aggr...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( 2 ) )
detectIfNone ( ) { boolean detect = this . classUnderTest ( ) . detectIfNone ( ( value ) -> true , false ) ; "<AssertPlaceHolder>" ; } detectIfNone ( org . eclipse . collections . api . block . predicate . Predicate , org . eclipse . collections . api . block . function . Function0 ) { return this . getMutableCollectio...
org . junit . Assert . assertFalse ( detect )
testDBMacroSupport ( ) { java . lang . String importQuery = "SELECT<sp>*<sp>FROM<sp>\"my_table\"<sp>WHERE<sp>DATE_COL<sp><=<sp>\'${logicalStartTime(yyyy-MM-dd,1d)}\'<sp>" + "AND<sp>$CONDITIONS" ; java . lang . String boundingQuery = "SELECT<sp>MIN(ID),MAX(ID)<sp>from<sp>\"my_table\"" ; java . lang . String splitBy = "I...
org . junit . Assert . assertTrue ( io . cdap . cdap . etl . mock . batch . MockSink . readOutput ( outputManager ) . isEmpty ( ) )
checkSuperAdminAccessToTenant ( ) { final org . sentilo . web . catalog . domain . Tenant resource = new org . sentilo . web . catalog . domain . Tenant ( "1" ) ; when ( userDetails . isSuperAdminUser ( ) ) . thenReturn ( true ) ; final boolean allowedCRUDL = ( ( ( ( checkAccess ( resource , ActionType . LIST ) ) | ( c...
org . junit . Assert . assertTrue ( allowedCRUDL )
serialize ( ) { com . google . gson . Gson gson = com . github . seratch . jslack . common . json . GsonFactory . createSnakeCase ( ) ; com . github . seratch . jslack . api . model . event . TeamMigrationStartedEvent event = new com . github . seratch . jslack . api . model . event . TeamMigrationStartedEvent ( ) ; ja...
org . junit . Assert . assertThat ( generatedJson , org . hamcrest . CoreMatchers . is ( expectedJson ) )
givenHeadOperationOKThenOK ( ) { javax . ws . rs . core . Response . ResponseBuilder builder = javax . ws . rs . core . Response . status ( Status . ACCEPTED ) . header ( GlobalDataRest . X_GLOBAL_EXECUTION_STATE , ProcessState . COMPLETED ) . header ( GlobalDataRest . X_GLOBAL_EXECUTION_STATUS , StatusCode . OK ) . he...
org . junit . Assert . assertEquals ( status . getGlobalStatus ( ) , StatusCode . OK )
assertMonthsDaysInvariant_T1UntilT2_Eq_T2UntilT1Inv ( ) { net . time4j . Duration < net . time4j . CalendarUnit > p1 = this . start . until ( this . end , net . time4j . Duration . in ( net . time4j . CalendarUnit . MONTHS , net . time4j . CalendarUnit . DAYS ) ) ; net . time4j . Duration < net . time4j . CalendarUnit ...
org . junit . Assert . assertThat ( p1 , org . hamcrest . CoreMatchers . is ( p2 . inverse ( ) ) )
testGetLongWithKeyWithDefaultWithValidProperty ( ) { final edu . illinois . library . cantaloupe . config . Configuration instance = getInstance ( ) ; instance . setProperty ( Key . MAX_PIXELS , 5 ) ; "<AssertPlaceHolder>" ; } getLong ( java . lang . String , long ) { try { return getLong ( key ) ; } catch ( java . uti...
org . junit . Assert . assertEquals ( 5 , instance . getLong ( Key . MAX_PIXELS , 6 ) )
testRemoveClusterNodeLabelsWithCentralizedConfigurationDisabled ( ) { org . apache . hadoop . yarn . server . resourcemanager . MockRM rm = new org . apache . hadoop . yarn . server . resourcemanager . MockRM ( ) ; ( ( org . apache . hadoop . yarn . server . resourcemanager . RMContextImpl ) ( rm . getRMContext ( ) ) )...
org . junit . Assert . assertEquals ( 1 , clusterNodeLabels . size ( ) )
testGetId ( ) { System . out . println ( "getId" ) ; com . pearson . docussandra . domain . event . IndexCreatedEvent instance = com . pearson . docussandra . testhelper . Fixtures . createTestIndexCreationStatus ( ) ; com . pearson . docussandra . domain . objects . Identifier expResult = new com . pearson . docussand...
org . junit . Assert . assertEquals ( expResult , result )
shouldScheduleToNow ( ) { testRule . deploy ( PROCESS ) ; org . camunda . bpm . engine . impl . util . ClockUtil . setCurrentTime ( org . camunda . bpm . engine . test . api . history . removaltime . cleanup . END_DATE ) ; org . camunda . bpm . engine . runtime . ProcessInstance processInstance = runtimeService . start...
org . junit . Assert . assertThat ( job . getDuedate ( ) , org . hamcrest . core . Is . is ( removalTime ) )
testGetMessageSupplierResultOfSupplier ( ) { final org . apache . logging . log4j . message . Message expected = new org . apache . logging . log4j . message . SimpleMessage ( "hi" ) ; final org . apache . logging . log4j . message . Message actual = org . apache . logging . log4j . util . LambdaUtil . get ( new org . ...
org . junit . Assert . assertSame ( expected , actual )
configDefaultsToServicename ( ) { final java . lang . String servicename = "servicename" ; java . util . Map < java . lang . String , java . lang . Object > configMap = com . google . common . collect . ImmutableMap . < java . lang . String , java . lang . Object > of ( SlackProvider . CONFIG_PATH_WEBHOOK , "http://exa...
org . junit . Assert . assertEquals ( servicename , slackConfig . username ( ) )
shouldNotFailIfAutoDiscoveryIsNotPossible ( ) { com . xebialabs . restito . semantics . Call call = mock ( com . xebialabs . restito . semantics . Call . class ) ; when ( call . getUri ( ) ) . thenReturn ( "/blablabla.xml" ) ; when ( call . getMethod ( ) ) . thenReturn ( Method . GET ) ; com . xebialabs . restito . sem...
org . junit . Assert . assertFalse ( condition . getPredicate ( ) . test ( call ) )
shouldReturnContainerTemplateWhenParentIsNull ( ) { org . csanchez . jenkins . plugins . kubernetes . ContainerTemplate result = combine ( null , org . csanchez . jenkins . plugins . kubernetes . PodTemplateUtilsTest . JNLP_2 ) ; "<AssertPlaceHolder>" ; } combine ( org . csanchez . jenkins . plugins . kubernetes . Cont...
org . junit . Assert . assertEquals ( result , org . csanchez . jenkins . plugins . kubernetes . PodTemplateUtilsTest . JNLP_2 )