input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testBigDecimalLiteral ( ) { final org . drools . modelcompiler . builder . generator . TypedExpression expected = typedResult ( "13.111B" , java . math . BigDecimal . class ) ; final org . drools . modelcompiler . builder . generator . TypedExpression actual = toTypedExpression ( "13.111B" , null ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( expected , actual )
whenCopyFileUsingFiles_thenCopied ( ) { final java . lang . String expectedValue = "Hello<sp>world" ; final java . io . File file1 = new java . io . File ( "src/test/resources/test1.in" ) ; final java . io . File file2 = new java . io . File ( "src/test/resources/test_copy.in" ) ; com . google . common . io . Files . c...
org . junit . Assert . assertEquals ( expectedValue , result )
testRestInspectExport ( ) { waitForIt ( 3000 ) ; "<AssertPlaceHolder>" ; } ping ( int ) { return ( getProxy ( "" ) . options ( com . sun . jersey . api . client . ClientResponse . class ) . getStatus ( ) ) == status ; }
org . junit . Assert . assertTrue ( ping ( 200 ) )
logHelperTest_configLogSeverity_mapToConfigLogLevel ( ) { dk . i2m . converge . core . logging . LogSeverity severity = LogSeverity . CONFIG ; java . util . logging . Level level = dk . i2m . converge . core . logging . LogHelper . toLevel ( severity ) ; "<AssertPlaceHolder>" ; } toString ( ) { java . lang . StringBuil...
org . junit . Assert . assertEquals ( Level . CONFIG . toString ( ) , level . toString ( ) )
testStripSuffixAppendedWithMultipleStringValue ( ) { java . lang . String fileName = _fileImpl . appendParentheticalSuffix ( "test.jsp" , "AAAAAAA" ) ; "<AssertPlaceHolder>" ; } stripParentheticalSuffix ( java . lang . String ) { return com . liferay . portal . kernel . util . FileUtil . getFile ( ) . stripParenthetica...
org . junit . Assert . assertEquals ( "test.jsp" , _fileImpl . stripParentheticalSuffix ( fileName ) )
testCreateHostnameVerifierClientVerifier ( ) { com . aliyuncs . http . clients . HttpClientConfig clientConfig = com . aliyuncs . http . clients . HttpClientConfig . getDefault ( ) ; com . aliyuncs . http . clients . HostnameVerifier hostnameVerifier = mock ( com . aliyuncs . http . clients . HostnameVerifier . class )...
org . junit . Assert . assertEquals ( res , hostnameVerifier )
shouldReturnTrueSameMinorHigherPatchVersion ( ) { boolean result = me . gnat008 . perworldinventory . util . Utils . checkServerVersion ( VERSION_1_9_4 , 1 , 9 , 2 ) ; "<AssertPlaceHolder>" ; } checkServerVersion ( java . lang . String , int , int , int ) { java . lang . String versionNum = version . substring ( ( ( ve...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( true ) )
whenSavingStudents_thenAllShouldAvailableOnRetrieval ( ) { final com . baeldung . spring . data . redis . model . Student engStudent = new com . baeldung . spring . data . redis . model . Student ( "Eng2015001" , "John<sp>Doe" , Student . Gender . MALE , 1 ) ; final com . baeldung . spring . data . redis . model . Stud...
org . junit . Assert . assertEquals ( students . size ( ) , 2 )
testGetTableVersionForFileView ( ) { java . lang . Long crc32 = 45678L ; java . lang . Long type = ViewTypeMask . File . getMask ( ) ; when ( mockViewScopeDao . getViewTypeMask ( tableIdLong ) ) . thenReturn ( type ) ; when ( mockNodeDao . getNodeTypeById ( tableId ) ) . thenReturn ( EntityType . entityview ) ; when ( ...
org . junit . Assert . assertEquals ( crc32 , version )
test02 ( ) { javax . sql . DataSource ds = DatasourceConfig . DATA_SOURCES . get ( "-" 5 ) ; com . alibaba . otter . canal . client . adapter . es . test . sync . Common . sqlExe ( ds , "update<sp>role<sp>set<sp>role_name='admin3'<sp>where<sp>id=1" ) ; com . alibaba . otter . canal . client . adapter . support . Dml dm...
org . junit . Assert . assertEquals ( "-" 2 , response . getSource ( ) . get ( "-" 3 ) )
test3 ( ) { edu . cmu . tetrad . test . Graph pattern = new edu . cmu . tetrad . test . EdgeListGraph ( ) ; edu . cmu . tetrad . test . Node x1 = new edu . cmu . tetrad . test . GraphNode ( "X1" ) ; edu . cmu . tetrad . test . Node x2 = new edu . cmu . tetrad . test . GraphNode ( "X2" ) ; edu . cmu . tetrad . test . No...
org . junit . Assert . assertEquals ( 1 , count )
runTest ( ) { boolean result = checkNoError ( "Social_Profiles_Get_Colleagues_By_Profile_Entity" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
testSaveMaterial ( ) { org . libreplan . business . materials . entities . Material material = createValidMaterial ( ) ; materialDAO . save ( material ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertTrue ( ( ( material . getId ( ) ) != null ) )
selectFromSentExpectZeroResults ( ) { net . jforum . repository . PrivateMessageRepository dao = this . newDao ( ) ; net . jforum . entities . User user = new net . jforum . entities . User ( ) ; user . setId ( 88 ) ; "<AssertPlaceHolder>" ; } getFromSentBox ( net . jforum . entities . User ) { return session . createC...
org . junit . Assert . assertEquals ( 0 , dao . getFromSentBox ( user ) . size ( ) )
testRemoveModel04 ( ) { org . dresdenocl . model . IModelRegistry modelRegistry ; modelRegistry = org . dresdenocl . modelbus . ModelBusPlugin . getModelRegistry ( ) ; "<AssertPlaceHolder>" ; org . dresdenocl . model . IModel model ; model = null ; modelRegistry . removeModel ( model ) ; } getModels ( ) { org . dresden...
org . junit . Assert . assertEquals ( 0 , modelRegistry . getModels ( ) . length )
willRoundUp ( ) { doReturn ( "24" ) . when ( request ) . getParameter ( "listPagerPageSize" ) ; final org . jivesoftware . util . ListPager < java . lang . Integer > listPager = new org . jivesoftware . util . ListPager ( request , response , org . jivesoftware . util . ListPagerTest . LIST_OF_25 ) ; "<AssertPlaceHolde...
org . junit . Assert . assertThat ( listPager . getTotalPages ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
shouldParseIsoSymbolNoSpaceByteNumber ( ) { long value = org . dcache . util . ByteSizeParser . using ( isoSymbol ( ) ) . parse ( "1B" ) ; "<AssertPlaceHolder>" ; } parse ( java . io . File ) { java . util . List < diskCacheV111 . util . PnfsId > list = new java . util . ArrayList ( ) ; try ( java . io . BufferedReader...
org . junit . Assert . assertThat ( value , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( 1L ) ) )
getContainedRunnableTest ( ) { org . threadly . test . concurrent . TestRunnable tr = new org . threadly . test . concurrent . TestRunnable ( ) ; org . threadly . concurrent . wrapper . ThrowableSuppressingRunnable tsr = new org . threadly . concurrent . wrapper . ThrowableSuppressingRunnable ( tr ) ; "<AssertPlaceHold...
org . junit . Assert . assertTrue ( ( ( tsr . getContainedRunnable ( ) ) == tr ) )
testInjectedService ( ) { org . rioproject . examples . calculator . Calculator service = future . get ( ) ; "<AssertPlaceHolder>" ; testService ( service ) ; } get ( ) { java . lang . String rioHome = java . lang . System . getProperty ( "rio.home" , java . lang . System . getenv ( "RIO_HOME" ) ) ; if ( rioHome == nul...
org . junit . Assert . assertNotNull ( service )
shouldHandleYearMonth ( ) { final java . time . YearMonth o = java . time . YearMonth . now ( ) ; "<AssertPlaceHolder>" ; } serializeDeserialize ( org . apache . tinkerpop . shaded . jackson . databind . ObjectMapper , java . lang . Object , java . lang . Class ) { try ( final java . io . ByteArrayOutputStream stream =...
org . junit . Assert . assertEquals ( o , serializeDeserialize ( mapper , o , java . time . YearMonth . class ) )
lookupMatchAfterHashMismatch ( ) { com . facebook . buck . core . rulekey . RuleKey key1 = new com . facebook . buck . core . rulekey . RuleKey ( "aa" ) ; com . facebook . buck . core . rulekey . RuleKey key2 = new com . facebook . buck . core . rulekey . RuleKey ( "bb" ) ; com . facebook . buck . core . sourcepath . S...
org . junit . Assert . assertThat ( manifest . lookup ( fileHashCache , com . facebook . buck . core . build . engine . manifest . ManifestTest . RESOLVER , com . google . common . collect . ImmutableSet . of ( input ) ) , org . hamcrest . Matchers . equalTo ( java . util . Optional . of ( key2 ) ) )
testFastSize ( ) { java . lang . Iterable < java . lang . Integer > s ; org . apache . jackrabbit . oak . jcr . query . PrefetchIterator < java . lang . Integer > it ; s = org . apache . jackrabbit . oak . jcr . query . PrefetchIteratorTest . seq ( 0 , 21 ) ; it = new org . apache . jackrabbit . oak . jcr . query . Pre...
org . junit . Assert . assertEquals ( 21 , it . size ( ) )
testNonEmptyJSON ( ) { boolean isEmpty = org . apache . sqoop . util . SqoopJsonUtil . isEmptyJSON ( org . apache . sqoop . util . TestSqoopJsonUtil . jsonStr ) ; "<AssertPlaceHolder>" ; } isEmptyJSON ( java . lang . String ) { if ( ( ( null == jsonStr ) || ( "" . equals ( jsonStr ) ) ) || ( "{}" . equals ( jsonStr ) )...
org . junit . Assert . assertEquals ( false , isEmpty )
loadNotEmptyConfigurationDeprecated ( ) { final org . apache . logging . log4j . core . net . ssl . KeyStoreConfiguration ksc = new org . apache . logging . log4j . core . net . ssl . KeyStoreConfiguration ( TestConstants . KEYSTORE_FILE , org . apache . logging . log4j . core . net . ssl . TestConstants . KEYSTORE_PWD...
org . junit . Assert . assertTrue ( ( ks != null ) )
testLessOrEqual ( ) { try { org . talend . dq . dbms . DbmsLanguage dbms = getMysqlDbmsLanguage ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } } lessOrEqual ( ) { return surroundWithSpaces ( SqlPredicate . LESS_EQUAL . getLiteral ( ) ) ; }
org . junit . Assert . assertNotNull ( dbms . lessOrEqual ( ) )
setFetchCount ( ) { timeline . setFetchCount ( book . twju . chapter_3 . Listing_4_Mock_TimelineTest . NEW_FETCH_COUNT ) ; "<AssertPlaceHolder>" ; } getFetchCount ( ) { return fetchCount ; }
org . junit . Assert . assertEquals ( book . twju . chapter_3 . Listing_4_Mock_TimelineTest . NEW_FETCH_COUNT , timeline . getFetchCount ( ) )
putUserProperty ( ) { org . apache . rocketmq . common . message . Message m = new org . apache . rocketmq . common . message . Message ( ) ; m . putUserProperty ( "prop1" , "val1" ) ; "<AssertPlaceHolder>" ; } getUserProperty ( java . lang . String ) { return this . getProperty ( name ) ; }
org . junit . Assert . assertEquals ( "val1" , m . getUserProperty ( "prop1" ) )
apply ( ) { io . trane . future . Promise < java . lang . Integer > p = io . trane . future . Promise . apply ( ) ; p . setValue ( 1 ) ; "<AssertPlaceHolder>" ; } get ( io . trane . future . Future ) { return future . get ( Duration . ZERO ) ; }
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , get ( p ) )
ok ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , true , true , true , true , true , true ) ; "<Asse...
org . junit . Assert . assertTrue ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
testInput5GB ( ) { System . out . println ( "testInput5GB" ) ; final int lines = 50000000 ; java . lang . String query = "SELECT<sp>*<sp>{}" ; org . apache . jena . query . ResultSet rs = prepare ( query , new org . deri . tarql . LargeInputTest . DummyContentSource ( lines ) ) . execSelect ( ) ; int results = consume ...
org . junit . Assert . assertEquals ( ( lines - 1 ) , results )
restrictingResultSize ( ) { final com . mongodb . BasicDBObject dbObj = new com . mongodb . BasicDBObject ( ) ; when ( this . cursor . hasNext ( ) ) . thenAnswer ( new org . mockito . stubbing . Answer < java . lang . Boolean > ( ) { private int count = ( Search . SEARCH_LIMIT ) + 10 ; @ xbdd . webapp . resource . feat...
org . junit . Assert . assertThat ( searchResults . size ( ) , org . hamcrest . Matchers . is ( Search . SEARCH_LIMIT ) )
shouldSerializeGenericClass ( ) { java . lang . String expectedResult = "<genericWrapper>\n<sp><entityList<sp>class=\"list\">\n<sp><client>\n<sp><name>washington<sp>botelho</name>\n<sp></client>\n<sp><client>\n<sp><name>washington<sp>botelho</name>\n<sp></client>\n<sp></entityList>\n<sp><total>2</total>\n</genericWrapp...
org . junit . Assert . assertThat ( result ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )
testMultipleQuriesNested ( ) { System . out . println ( "In<sp>testMultipleQuriesNested<sp>method" ) ; System . out . println ( "In<sp>testMultipleQuriesLinear<sp>method" ) ; com . marklogic . client . row . RowManager rowMgr = com . marklogic . client . functionaltest . TestOpticOnCtsQuery . client . newRowManager ( )...
org . junit . Assert . assertTrue ( "detail" 4 , ( 6 == ( jsonBindingsNodes . size ( ) ) ) )
test2502355_zoomOutBoth ( ) { org . jfree . data . xy . DefaultXYDataset dataset = new org . jfree . data . xy . DefaultXYDataset ( ) ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createXYLineChart ( "TestChart" , "X" , "Y" , dataset , PlotOrientation . VERTICAL , false , false , false...
org . junit . Assert . assertEquals ( 1 , this . chartChangeEvents . size ( ) )
test3Patterns ( ) { org . drools . modelcompiler . domain . Result result = new org . drools . modelcompiler . domain . Result ( ) ; org . drools . model . Variable < org . drools . modelcompiler . domain . Person > personV = org . drools . model . FlowDSL . declarationOf ( org . drools . modelcompiler . domain . Perso...
org . junit . Assert . assertEquals ( "Mario" , result . getValue ( ) )
test_empty ( ) { java . lang . String result = cz . tomasdvorak . wordwrap . Wordwrap . wordwrap ( "" , 10 ) ; "<AssertPlaceHolder>" ; } wordwrap ( java . lang . String , int ) { if ( ( input == null ) || ( length < 1 ) ) { throw new java . lang . IllegalArgumentException ( "Invalid<sp>input<sp>args" ) ; } final java ....
org . junit . Assert . assertEquals ( "" , result )
testTwoWayTestEqualCellsEqualVars ( ) { logger . info ( "twoWayTestEqualCellsEqualVars" ) ; com . datumbox . framework . common . dataobjects . TransposeDataCollection transposeDataCollection1 = new com . datumbox . framework . common . dataobjects . TransposeDataCollection ( ) ; transposeDataCollection1 . put ( "Strai...
org . junit . Assert . assertEquals ( expResult , result )
testCreate ( ) { final org . kie . workbench . common . dmn . client . editors . types . persistence . DataTypeRecordEngine engine = makeRecordEngine ( ) ; final org . kie . workbench . common . dmn . client . editors . types . common . DataType record = spy ( new org . kie . workbench . common . dmn . client . editors...
org . junit . Assert . assertEquals ( expectedDataTypes , actualDataTypes )
parseToDateTimeTest4 ( ) { java . lang . String dateStr1 = "2017-02-01<sp>12:23:45" ; java . lang . String dateStr2 = "20170201122345" ; cn . hutool . core . date . DateTime dt1 = cn . hutool . core . date . DateUtil . parse ( dateStr1 ) ; cn . hutool . core . date . DateTime dt2 = cn . hutool . core . date . DateUtil ...
org . junit . Assert . assertEquals ( dt1 , dt2 )
shouldGetAllOrdersForAPatientInTheSpecifiedCareSettingIncludingVoidedOnesIfRequested ( ) { org . openmrs . module . webservices . rest . SimpleObject results = deserialize ( handle ( newGetRequest ( getURI ( ) , new org . openmrs . module . webservices . rest . web . v1_0 . controller . openmrs1_10 . Parameter ( "patie...
org . junit . Assert . assertEquals ( 9 , org . openmrs . module . webservices . rest . test . Util . getResultsSize ( results ) )
producesExpectedRandomValues ( ) { java . util . List < ? > values = randomValues ( ) ; "<AssertPlaceHolder>" ; for ( int i = 0 ; i < ( propertyParameters . size ( ) ) ; ++ i ) verifyEquivalenceOfPropertyParameter ( i , values . get ( i ) , propertyParameters . get ( i ) ) ; } trials ( ) { return 3 ; }
org . junit . Assert . assertEquals ( trials ( ) , values . size ( ) )
testEquals ( ) { org . apache . rocketmq . common . DataVersion dataVersion = new org . apache . rocketmq . common . DataVersion ( ) ; org . apache . rocketmq . common . DataVersion other = new org . apache . rocketmq . common . DataVersion ( ) ; other . setTimestamp ( dataVersion . getTimestamp ( ) ) ; "<AssertPlaceHo...
org . junit . Assert . assertTrue ( dataVersion . equals ( other ) )
testRequestHasLivingSubjectId ( ) { System . out . println ( "requestHasLivingSubjectId" ) ; org . hl7 . v3 . PRPAIN201305UV02 request = null ; gov . hhs . fha . nhinc . patientdiscovery . response . TrustMode instance = new gov . hhs . fha . nhinc . patientdiscovery . response . TrustMode ( ) ; boolean expResult = fal...
org . junit . Assert . assertEquals ( expResult , result )
testJoinOneMatch ( ) { com . huawei . streaming . common . Pair < com . huawei . streaming . event . IEvent [ ] [ ] , com . huawei . streaming . event . IEvent [ ] [ ] > prepare1 = com . huawei . streaming . process . join . SupportDataPrepare . dataPrepare ( SupportConst . I_TWO , SupportConst . I_THREE ) ; com . huaw...
org . junit . Assert . assertArrayEquals ( expSet . toArray ( new com . huawei . streaming . common . MultiKey [ expSet . size ( ) ] ) , result . getFirst ( ) . toArray ( new com . huawei . streaming . common . MultiKey [ result . getFirst ( ) . size ( ) ] ) )
storeTo ( ) { java . util . Properties p = new java . util . Properties ( ) ; p . setProperty ( k ( "test" , com . asakusafw . windgate . core . KEY_DATA_CLASS ) , java . lang . String . class . getName ( ) ) ; p . setProperty ( k ( "test" , com . asakusafw . windgate . core . KEY_PROCESS_TYPE ) , "plain" ) ; p . setPr...
org . junit . Assert . assertThat ( target , is ( p ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . site . model . SiteFriendlyURL . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . liferay ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
deveObterAmbienteComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . consulta . NFNotaConsulta notaConsulta = new com . fincatto . documentofiscal . nfe400 . classes . nota . consulta . NFNotaConsulta ( ) ; notaConsulta . setAmbiente ( DFAmbiente . HOMOLOGACAO ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( DFAmbiente . HOMOLOGACAO , notaConsulta . getAmbiente ( ) )
testConnectionProfileHelper ( ) { java . util . Map < java . lang . String , org . jboss . forge . addon . database . tools . connections . ConnectionProfile > profiles = manager . loadConnectionProfiles ( ) ; "<AssertPlaceHolder>" ; } loadConnectionProfiles ( ) { return profiles ; }
org . junit . Assert . assertNotNull ( profiles )
testIsMachineRunning_noFactory ( ) { this . target . standardAgentFactory = null ; java . util . Map < java . lang . String , java . lang . String > targetProperties = new java . util . HashMap ( 0 ) ; net . roboconf . target . api . TargetHandlerParameters parameters = new net . roboconf . target . api . TargetHandler...
org . junit . Assert . assertFalse ( this . target . isMachineRunning ( parameters , null ) )
testListStatusFilterWithNoMatches ( ) { org . apache . hadoop . fs . Path [ ] testDirs = new org . apache . hadoop . fs . Path [ ] { getTestRootPath ( org . apache . hadoop . fs . FileContextMainOperationsBaseTest . fc , org . apache . hadoop . fs . FileContextMainOperationsBaseTest . TEST_DIR_AAA2 ) , getTestRootPath ...
org . junit . Assert . assertEquals ( 0 , filteredPaths . length )
parseEmpty ( ) { final java . lang . String data = "" ; final java . util . Map < java . lang . String , java . lang . String > props = org . jboss . errai . common . client . util . Properties . load ( data ) ; "<AssertPlaceHolder>" ; } size ( ) { return PRIMARY_CLASS_CACHE . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , props . size ( ) )
testDoWhile ( ) { for ( int i = 0 ; i < 3 ; i ++ ) { org . apache . commons . functor . core . algorithm . TestDoWhile . Counter counter = new org . apache . commons . functor . core . algorithm . TestDoWhile . Counter ( ) ; new org . apache . commons . functor . core . algorithm . DoWhile ( counter , new org . apache ...
org . junit . Assert . assertEquals ( ( i + 1 ) , counter . count )
createServiceWrapper ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareGradle ( project . getName ( ) , com . liferay . ide . ui . module . tests . SERVICE_WRAPPER ) ; wizardAction . next ( ) ; wizardAction . newModuleInfo . openSelectServiceDialog ( ) ; dialogAction . prepareText ...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( project . getName ( ) ) )
validateErrorMessageOnNullArgument ( ) { final java . lang . String argumentName = "fooBar" ; final java . lang . String expectedMsg = "Cannot<sp>handle<sp>null<sp>'fooBar'<sp>argument." ; try { org . codehaus . mojo . jaxb2 . shared . Validate . notNull ( null , argumentName ) ; } catch ( java . lang . NullPointerExce...
org . junit . Assert . assertEquals ( expectedMsg , expected . getMessage ( ) )
getPatients_shouldReturnEmptyListIfNameAndIdentifierIsEmpty ( ) { java . util . List < org . openmrs . Patient > patients = org . openmrs . api . PatientServiceTest . patientService . getPatients ( "" , "" , null , false ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( patients . isEmpty ( ) )
instantiation ( ) { org . junithelper . core . config . Configuration config = null ; org . junithelper . core . extractor . TypeNameConverter target = new org . junithelper . core . extractor . TypeNameConverter ( config ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( target )
test_f ( ) { symbolic_examples . symbolic_example_9 . NopolExample p = new symbolic_examples . symbolic_example_9 . NopolExample ( ) ; "<AssertPlaceHolder>" ; } f ( int ) { int resf = 0 ; resf = x + 1 ; return resf ; }
org . junit . Assert . assertEquals ( 5 , p . f ( 3 ) )
testGetRemoteAddrUsesFallbackIfXForwardedForIsNotValidInetAddr ( ) { when ( httpServletRequest . getRemoteAddr ( ) ) . thenReturn ( "mockedRemoteAddr" ) ; when ( httpServletRequest . getHeader ( Context . X_FORWARD_HEADER ) ) . thenReturn ( "I_AM_NOT_A_VALID_ADDRESS" ) ; when ( ninjaProperties . getBooleanWithDefault (...
org . junit . Assert . assertEquals ( "mockedRemoteAddr" , context . getRemoteAddr ( ) )
writeErrorMessage ( ) { long session = 1L ; int code = - 200 ; java . lang . String message = "Failed!" ; cocaine . message . Message msg = cocaine . message . Messages . error ( session , code , message ) ; byte [ ] bytes = pack . write ( java . util . Arrays . asList ( 5 , session , java . util . Arrays . asList ( co...
org . junit . Assert . assertArrayEquals ( bytes , result )
deletePropertyDescriptorByOwnerIncludingPropertyValuesWhenDeletingOwnerIsOwnerOfDescriptorWithPropertiesOnResourceShouldSucceed ( ) { ch . puzzle . itc . mobiliar . business . foreignable . entity . ForeignableOwner deletingOwner = ch . puzzle . itc . mobiliar . business . foreignable . entity . ForeignableOwner . AMW ...
org . junit . Assert . assertEquals ( deletingOwner , descriptor . getOwner ( ) )
shouldFailWebSocketConnectionWhenServerSendPingFrameWithRsv7 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any ( ...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
testDnsMasqConfigCommand ( ) { final com . cloud . agent . api . Answer answer = _resource . executeRequest ( generateDnsMasqConfigCommand ( ) ) ; "<AssertPlaceHolder>" ; } getResult ( ) { return this . result ; }
org . junit . Assert . assertTrue ( answer . getResult ( ) )
testExpnFromCreateRequest ( ) { com . dumbster . smtp . Request request = com . dumbster . smtp . Request . createRequest ( SmtpState . GREET , "EXPN" ) ; "<AssertPlaceHolder>" ; } getClientAction ( ) { return clientAction ; }
org . junit . Assert . assertEquals ( "EXPN" , request . getClientAction ( ) . toString ( ) )
simplePayload ( ) { deframer . request ( 1 ) ; fakeClock . forwardTime ( 10 , TimeUnit . MILLISECONDS ) ; deframer . deframe ( io . grpc . internal . MessageDeframerTest . buffer ( new byte [ ] { 0 , 0 , 0 , 0 , 2 , 3 , 14 } ) ) ; verify ( listener ) . messagesAvailable ( producer . capture ( ) ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( com . google . common . primitives . Bytes . asList ( new byte [ ] { 3 , 14 } ) , io . grpc . internal . MessageDeframerTest . bytes ( producer . getValue ( ) . next ( ) ) )
pipesAndChains ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = Sequence ( Sequence ( Property ( "foo" ) , Property ( "bar" ) ) , Sequence ( Property ( "baz" ) , Property ( "qux" ) ) ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "foo.bar<sp>|<sp>baz.qux" ) ...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
createFileFault ( ) { int clients = 10 ; java . util . List < alluxio . collections . Pair < java . lang . Long , alluxio . AlluxioURI > > answer = new java . util . ArrayList ( ) ; for ( int k = 0 ; k < clients ; k ++ ) { faultTestDataCreation ( new alluxio . AlluxioURI ( ( "/data" + k ) ) , answer ) ; } faultTestData...
org . junit . Assert . assertTrue ( mMultiMasterLocalAlluxioCluster . stopLeader ( ) )
getDefaultClassLoader ( ) { "<AssertPlaceHolder>" ; } getDefaultClassLoader ( ) { org . junit . Assert . assertEquals ( java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) , com . zuoxiaolong . niubi . job . core . helper . ClassHelper . getDefaultClassLoader ( ) ) ; }
org . junit . Assert . assertEquals ( java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) , com . zuoxiaolong . niubi . job . core . helper . ClassHelper . getDefaultClassLoader ( ) )
testEquals1 ( ) { for ( int i = 0 ; i < 256 ; i ++ ) { co . nstant . in . cbor . model . Tag tag1 = new co . nstant . in . cbor . model . Tag ( i ) ; co . nstant . in . cbor . model . Tag tag2 = new co . nstant . in . cbor . model . Tag ( i ) ; "<AssertPlaceHolder>" ; } } equals ( java . lang . Object ) { if ( ( object...
org . junit . Assert . assertTrue ( tag1 . equals ( tag2 ) )
testInvalidExpression1 ( ) { java . lang . Boolean result = ( ( java . lang . Boolean ) ( _allFunction . apply ( "#invalid#<sp>><sp>10" , 11 ) ) ) ; "<AssertPlaceHolder>" ; } apply ( java . math . BigDecimal , java . math . BigDecimal ) { return n1 . pow ( n2 . intValue ( ) ) ; }
org . junit . Assert . assertFalse ( result )
test_step_finished_adds_the_step_exeption_for_skipped_step_with_assumption_violated ( ) { createNonStrictReporter ( ) ; createDefaultRunNotifier ( ) ; setUpNoStepNotifierAndStepErrors ( ) ; java . lang . Throwable exception = new org . junit . AssumptionViolatedException ( "Oops" ) ; cucumber . api . Result result = mo...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( exception ) , jUnitReporter . stepErrors )
testInstalledUJMPCL ( ) { org . ujmp . core . Matrix m = org . ujmp . core . MatrixFactory . dense ( 1 , 1 ) ; "<AssertPlaceHolder>" ; } dense ( long , long ) { return new com . nativelibs4java . opencl . blas . ujmp . CLDenseDoubleMatrix2D ( rows , columns , com . nativelibs4java . opencl . blas . CLKernels . getInsta...
org . junit . Assert . assertTrue ( ( m instanceof com . nativelibs4java . opencl . blas . ujmp . CLDenseDoubleMatrix2D ) )
sqlQueryTestWithName ( ) { java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap ( ) ; params . put ( "name" , "" ) ; java . util . List < java . util . Map < java . lang . String , java . lang . Object > > actual = jp . co . future . uroborosql . sample . SqlAgentSampleTe...
org . junit . Assert . assertEquals ( toString ( expected ) , toString ( actual ) )
WHEN_a_IterationResult_creates_the_next_iteration_THEN_the_new_IterationResults_workflow_queues_match_that_of_the_previous ( ) { int batchSize = com . bigvisible . kanbansimulatortester . core . unit . UnitTestHelper . anyReasonableNumber ( ) ; iterationResult . setBatchSize ( batchSize ) ; int storiesAvailableToPlay =...
org . junit . Assert . assertThat ( nextIteration . getQueued ( workflowStepName ) , is ( 1 ) )
getBoundingRect ( ) { System . out . println ( "getBoundingRect" ) ; org . krysalis . barcode4j . BarcodeDimension instance = new org . krysalis . barcode4j . BarcodeDimension ( 100 , 200 , 110 , 204 , 5 , 2 ) ; java . awt . geom . Rectangle2D expResult = new java . awt . geom . Rectangle2D . Double ( 0 , 0 , 110 , 204...
org . junit . Assert . assertEquals ( expResult , result )
testResetPasswordByAdmin ( ) { org . traccar . web . server . model . User user = new org . traccar . web . server . model . User ( "test" , "test" ) ; user = org . traccar . web . server . model . DataServiceTest . dataService . addUser ( user ) ; user . setPassword ( "test1" ) ; user = org . traccar . web . server . ...
org . junit . Assert . assertEquals ( "test1" , user . getPassword ( ) )
testRemovesTemporalAttributeAndSetsFinalSrc ( ) { java . lang . String originalImgTag = java . lang . String . format ( "<img<sp>data-image-id=\"%s\"<sp>src=\"%s\"<sp>/>" , com . liferay . upload . web . internal . HTMLImageAttachmentElementReplacerTest . _IMAGE_FILE_ENTRY_ID , com . liferay . portal . kernel . util . ...
org . junit . Assert . assertEquals ( expectedImgTag , actualTag )
testParserLines ( ) { io . toast . tk . dao . domain . impl . test . block . TestBlock block = ( ( io . toast . tk . dao . domain . impl . test . block . TestBlock ) ( testPage . getBlocks ( ) . get ( 0 ) ) ) ; "<AssertPlaceHolder>" ; } getBlockLines ( ) { return blockLines ; }
org . junit . Assert . assertEquals ( block . getBlockLines ( ) . size ( ) , 3 )
testUAndQuery_NoEncodingSymb ( ) { java . lang . String inputStr = "/?:@-._~!$'()*,;" ; java . lang . String matcher = "name=" + ( org . terasoluna . gfw . web . el . Functions . u ( inputStr ) ) ; java . util . Map < java . lang . String , java . lang . Object > map = new java . util . LinkedHashMap < java . lang . St...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( matcher ) )
testCloneIntoComposite ( ) { ca . uhn . fhir . util . Quantity source = new ca . uhn . fhir . util . Quantity ( ) ; source . setCode ( "CODE" ) ; ca . uhn . fhir . util . Money target = new ca . uhn . fhir . util . Money ( ) ; ca . uhn . fhir . util . FhirTerserDstu3Test . ourCtx . newTerser ( ) . cloneInto ( source , ...
org . junit . Assert . assertEquals ( "CODE" , target . getCode ( ) )
testMockingDeepStubs ( ) { ca . uhn . fhir . rest . client . api . IGenericClient client = mock ( ca . uhn . fhir . rest . client . api . IGenericClient . class , new org . mockito . internal . stubbing . defaultanswers . ReturnsDeepStubs ( ) ) ; ca . uhn . fhir . model . dstu2 . resource . Bundle retVal = new ca . uhn...
org . junit . Assert . assertSame ( retVal , actual )
testSimpleFunction ( ) { java . util . List < jongo . jdbc . StoredProcedureParam > params = new java . util . ArrayList < jongo . jdbc . StoredProcedureParam > ( ) ; java . util . List < jongo . rest . xstream . Row > rows = jongo . jdbc . JDBCExecutor . executeQuery ( "my_demo_db" , "simpleStoredProcedure" , params )...
org . junit . Assert . assertEquals ( 1 , rows . size ( ) )
testEmptyGltfPasses ( ) { de . javagl . jgltf . impl . v1 . GlTF gltf = new de . javagl . jgltf . impl . v1 . GlTF ( ) ; de . javagl . jgltf . validator . Validator validator = new de . javagl . jgltf . validator . Validator ( gltf ) ; de . javagl . jgltf . validator . ValidatorResult validatorResult = validator . vali...
org . junit . Assert . assertFalse ( validatorResult . hasErrors ( ) )
nietActueelEnGeldig ( ) { nl . bzk . algemeenbrp . dal . domein . brp . util . GeldigheidTest . Geldig geldig = new nl . bzk . algemeenbrp . dal . domein . brp . util . GeldigheidTest . Geldig ( 19000101 , null , false ) ; "<AssertPlaceHolder>" ; } isGeldig ( ) { return isGeldig ( java . lang . Integer . valueOf ( java...
org . junit . Assert . assertFalse ( geldig . isGeldig ( ) )
testIsNotExpired ( ) { sessionData = new com . amadeus . session . SessionData ( "1" , java . lang . System . currentTimeMillis ( ) , 10 ) ; com . amadeus . session . RepositoryBackedSession rbs = new com . amadeus . session . RepositoryBackedSession ( sessionData , manager , factory ) ; "<AssertPlaceHolder>" ; } isExp...
org . junit . Assert . assertFalse ( rbs . isExpired ( ) )
creating_pooled_components_returns_old_to_pool ( ) { com . artemis . World w = new com . artemis . World ( ) ; com . artemis . Entity e = w . createEntity ( ) ; com . artemis . component . CountingPooledComponent cpc1 = e . edit ( ) . create ( com . artemis . component . CountingPooledComponent . class ) ; w . process ...
org . junit . Assert . assertEquals ( cpc1 , e . edit ( ) . create ( com . artemis . component . CountingPooledComponent . class ) )
testAllSpecifiedAndAnotherPropName ( ) { java . util . List < java . lang . String > candidates = fetchCandidates ( ":operation-properties-one-two-three(two=2,one=1,three=3,four" ) ; "<AssertPlaceHolder>" ; } asList ( ) { final java . util . List < java . lang . String > result = new java . util . ArrayList ( ) ; for (...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( ) , candidates )
testGetTaskNegative ( ) { org . sejda . model . task . Task < ? extends org . sejda . model . parameter . base . TaskParameters > task = victim . getTask ( mock ( org . sejda . model . parameter . base . TaskParameters . class ) ) ; "<AssertPlaceHolder>" ; } getTask ( java . lang . Class ) { java . lang . Class < ? ext...
org . junit . Assert . assertNotNull ( task )
testMutate ( ) { org . apache . commons . math3 . genetics . BinaryMutation mutation = new org . apache . commons . math3 . genetics . BinaryMutation ( ) ; for ( int i = 0 ; i < 20 ; i ++ ) { org . apache . commons . math3 . genetics . DummyBinaryChromosome original = new org . apache . commons . math3 . genetics . Dum...
org . junit . Assert . assertEquals ( 1 , numDifferent )
testGetApiSecret_1 ( ) { org . jinstagram . auth . model . OAuthConfig fixture = new org . jinstagram . auth . model . OAuthConfig ( "key" , "secret" , "callback" , "scope" , "display" ) ; fixture . setRequestProxy ( org . jinstagram . auth . model . OAuthConfigTest . proxy ) ; java . lang . String result = fixture . g...
org . junit . Assert . assertNotNull ( result )
interfaceIsNotValid ( ) { log . debug ( "Testing<sp>interfaceIsNotValid..." ) ; org . opennaas . gui . vcpe . entities . Interface interface1 = new org . opennaas . gui . vcpe . entities . Interface ( ) ; interface1 . setName ( "" ) ; interface1 . setPort ( "" ) ; interface1 . setIpAddress ( "193.1.190.133" ) ; interfa...
org . junit . Assert . assertEquals ( 4 , constraintViolations . size ( ) )
groupByUniqueKey_target ( ) { org . eclipse . collections . api . map . MutableMap < java . lang . Integer , java . lang . Integer > integers = this . newStackWith ( 1 , 2 , 3 ) . groupByUniqueKey ( ( id ) -> id , org . eclipse . collections . impl . map . mutable . UnifiedMap . newWithKeysValues ( 0 , 0 ) ) ; "<Assert...
org . junit . Assert . assertEquals ( org . eclipse . collections . impl . map . mutable . UnifiedMap . newWithKeysValues ( 0 , 0 , 1 , 1 , 2 , 2 , 3 , 3 ) , integers )
testSpecExDisabled ( ) { final org . kiji . schema . Kiji kiji = getKiji ( ) ; final org . kiji . schema . layout . KijiTableLayout layout = org . kiji . schema . layout . KijiTableLayout . createUpdatedLayout ( org . kiji . schema . layout . KijiTableLayouts . getLayout ( KijiTableLayouts . SIMPLE ) , null ) ; kiji . ...
org . junit . Assert . assertFalse ( isMapSpecExEnabled )
uselessTestToTriggerCoverageForThisClassWithoutFunctionality ( ) { com . hazelcast . simulator . probes . impl . EmptyProbe emptyProbe = new com . hazelcast . simulator . probes . impl . EmptyProbe ( ) ; emptyProbe . reset ( ) ; emptyProbe . done ( 10 ) ; emptyProbe . recordValue ( 20 ) ; "<AssertPlaceHolder>" ; } isPa...
org . junit . Assert . assertFalse ( emptyProbe . isPartOfTotalThroughput ( ) )
testProcessRow_fail ( ) { doReturn ( null ) . when ( constantSpy ) . getRow ( ) ; doReturn ( null ) . when ( constantSpy ) . getInputRowMeta ( ) ; boolean success = constantSpy . processRow ( constantMeta , constantData ) ; "<AssertPlaceHolder>" ; } processRow ( org . pentaho . di . trans . step . StepMetaInterface , o...
org . junit . Assert . assertFalse ( success )
testMethodWithClassTypeHandlerAsyncResult ( ) { java . util . concurrent . atomic . AtomicReference < io . vertx . rxjava . codegen . testmodel . RefedInterface1 > refed = new java . util . concurrent . atomic . AtomicReference ( ) ; obj . methodWithClassTypeHandlerAsyncResult ( io . vertx . rxjava . codegen . testmode...
org . junit . Assert . assertEquals ( "foo" , refed . get ( ) . getString ( ) )
lambda1 ( ) { org . arend . typechecking . visitor . CheckTypeVisitor . Result result = typeCheckExpr ( "\\lam<sp>(x<sp>y<sp>:<sp>Nat)<sp>=><sp>\\lam<sp>z<sp>=><sp>z" , org . arend . ExpressionFactory . Pi ( singleParams ( true , vars ( "x" , "y" , "z" ) , Nat ( ) ) , Nat ( ) ) ) ; "<AssertPlaceHolder>" ; } Nat ( ) { r...
org . junit . Assert . assertNotNull ( result )
testMeanEdgeCase_F ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 30 , 30 ) . reshape ( new int [ ] { 3 , 10 , 1 } ) . dup ( 'f' ) ; org . nd4j . linalg . api . ndarray . INDArray arr2 = arr . mean ( 2 ) ; org . nd4j . linalg . api . ndarray . INDArray e...
org . junit . Assert . assertEquals ( exp , arr2 )
shipmentViolation_shouldWorkWhenViolated ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; com . graphhopper . jsprit . core . problem . solution . route . VehicleRoute route = solution . getRoutes ( ) . iterator ( ) . next ( ) ; com . graphhopper . jsprit . core . problem . solution . ro...
org . junit . Assert . assertTrue ( violation )
testAddDeletePhysicalSwitch ( ) { org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ns . yang . ovsdb . hwvtep . rev150901 . hwvtep . global . attributes . ConnectionInfo connectionInfo = getConnectionInfo ( org . opendaylight . ovsdb . hwvtepsouthbound . it . HwvtepSouthboundIT . addressStr , ...
org . junit . Assert . assertNotNull ( phySwitch )
testKVVoorwaardeRegel ( ) { final java . lang . String voorwaarderegel = "KV<sp>01.01.10" ; final java . lang . String expressieExpected = "KV(Persoon.Identificatienummers.Administratienummer)" ; final java . lang . String expressie = converteerNaarExpressieService . converteerVoorwaardeRegel ( voorwaarderegel ) ; "<As...
org . junit . Assert . assertEquals ( expressieExpected , expressie )