input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testBuildWithParameters ( ) { java . lang . String abbrName = "Diablo" ; java . lang . String name = "fdsfds" ; org . lnu . is . domain . reason . Reason context = new org . lnu . is . domain . reason . Reason ( ) ; context . setAbbrName ( abbrName ) ; context . setName ( name ) ; java . lang . String expectedQuery = "...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
hashCodeSameObject ( ) { org . oscm . vo . Setting s = new org . oscm . vo . Setting ( ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { int hash = 59 ; hash = ( key ) * hash ; return hash ; }
org . junit . Assert . assertEquals ( s . hashCode ( ) , s . hashCode ( ) )
testGetParametersWithNullEntity ( ) { java . util . List < java . lang . Long > entity = null ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; expected . put ( "status" , RowStatus . ACTIVE ) ; expected . put (...
org . junit . Assert . assertEquals ( expected , actual )
checkIsRegularTextPresent ( ) { given ( commandProcessor . doCommand ( "isTextPresent" , new java . lang . String [ ] { "foo" } ) ) . willReturn ( "true" ) ; final java . lang . String result = seleniumDriverFixture . isOn ( "isTextPresent" , "foo" ) ; "<AssertPlaceHolder>" ; } is ( java . lang . String ) { com . xebia...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( "true" ) )
testWriteClassName6 ( ) { testcase . function . User1 user = new testcase . function . User1 ( ) ; user . setB ( true ) ; com . jd . dd . glowworm . util . Parameters p = new com . jd . dd . glowworm . util . Parameters ( ) ; p . setNeedWriteClassName ( true ) ; testcase . function . User1 result = ( ( testcase . funct...
org . junit . Assert . assertEquals ( true , result . getB ( ) )
testGetSecurityZoneById ( ) { org . apache . ranger . plugin . model . RangerSecurityZone securityZone = createRangerSecurityZone ( ) ; java . lang . Long securityZoneId = 1L ; securityZone . setId ( securityZoneId ) ; when ( securityZoneStore . getSecurityZone ( securityZoneId ) ) . thenReturn ( securityZone ) ; org ....
org . junit . Assert . assertEquals ( securityZoneId , rangerSecurityZone . getId ( ) )
constructorSetsExpiryTimeCorrectly ( ) { final com . microsoft . azure . sdk . iot . device . IotHubConnectionString iotHubConnectionString = mockit . Deencapsulation . newInstance ( com . microsoft . azure . sdk . iot . device . IotHubConnectionString . class , new java . lang . Class [ ] { java . lang . String . clas...
org . junit . Assert . assertTrue ( ( ( expiryTimeBaseInSecs <= expiryTimeInSecs ) && ( expiryTimeInSecs <= ( expiryTimeBaseInSecs + expiryTimeTestErrorRange ) ) ) )
testReadFully2 ( ) { nom . tam . util . BufferedFile file = new nom . tam . util . BufferedFile ( "target/BufferedFileReadFully2" , "rw" ) ; file . write ( - 1 ) ; file . write ( - 1 ) ; file . write ( - 1 ) ; file . close ( ) ; file = new nom . tam . util . BufferedFile ( "target/BufferedFileReadFully2" , "rw" ) ; try...
org . junit . Assert . assertArrayEquals ( new byte [ ] { - 1 , - 1 , - 1 } , fully )
testFormatLogEventStringBuilderIso8601TimezoneJST ( ) { final org . apache . logging . log4j . core . LogEvent event = new org . apache . logging . log4j . core . pattern . DatePatternConverterTest . MyLogEvent ( ) ; final java . lang . String [ ] optionsWithTimezone = new java . lang . String [ ] { org . apache . logg...
org . junit . Assert . assertEquals ( expected , sb . toString ( ) )
orderShouldNotBeFilled ( ) { when ( warehouse . hasInventory ( pragmatists . OrderTestMockito . ZIEMNIAKI , 51 ) ) . thenReturn ( false ) ; pragmatists . Order order = new pragmatists . Order ( pragmatists . OrderTestMockito . ZIEMNIAKI , 51 ) ; order . fill ( warehouse ) ; "<AssertPlaceHolder>" ; verify ( warehouse , ...
org . junit . Assert . assertFalse ( order . isFilled ( ) )
testStandaloneSetup ( ) { java . lang . System . setProperty ( ControllerUtils . KIE_SERVER_CONTROLLER , "http://localhost:8080/controller" ) ; java . util . Set < java . lang . Class < ? > > scanned = org . mockito . internal . util . collections . Sets . newSet ( org . kie . server . controller . websocket . WebSocke...
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
testGetTrashById ( ) { com . onboard . domain . model . Trash ret = trashServiceImpl . getTrashById ( ModuleHelper . id ) ; verify ( mockedTrashMapper , times ( 1 ) ) . selectByPrimaryKey ( org . mockito . Mockito . argThat ( new com . onboard . test . exampleutils . ObjectMatcher < java . lang . Integer > ( ) { @ com ...
org . junit . Assert . assertEquals ( ret . getId ( ) , new java . lang . Integer ( com . onboard . test . moduleutils . ModuleHelper . id ) )
constructor ( ) { org . slim3 . datastore . InMemoryEndsWithCriterion c = new org . slim3 . datastore . InMemoryEndsWithCriterion ( meta . myString , "aaa" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( c . value , org . hamcrest . CoreMatchers . is ( "aaa" ) )
testBatchSaveAsArray ( ) { java . util . List < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass > objs = new java . util . ArrayList < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass > ( ) ; for ( int i = 0 ; i < 40 ; i ++ ) { com . a...
org . junit . Assert . assertEquals ( obj , loaded )
changingKeySelection_selectUidByAnyUidPart_works ( ) { java . io . ByteArrayOutputStream result = new java . io . ByteArrayOutputStream ( ) ; java . io . BufferedOutputStream bufferedOutputStream = new java . io . BufferedOutputStream ( result ) ; final java . io . OutputStream outputStream = name . neuhalfen . project...
org . junit . Assert . assertArrayEquals ( ExampleMessages . IMPORTANT_QUOTE_TEXT . getBytes ( ) , plainBA . toByteArray ( ) )
testArangeNegative ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . arange ( ( - 2 ) , 2 ) ; org . nd4j . linalg . api . ndarray . INDArray assertion = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { - 2 , - 1 , 0 , 1 } ) ; "<AssertPlaceHolder>" ; } crea...
org . junit . Assert . assertEquals ( assertion , arr )
testContains ( ) { org . kaleidoscope . RandomRoutingTable rt = new org . kaleidoscope . BasicRandomRoutingTable ( ) ; java . util . List < org . kaleidoscope . TrustGraphNodeId > neighbors = org . kaleidoscope . Helpers . createNeighbors ( 1000 ) ; rt . addNeighbors ( neighbors ) ; java . util . List < org . kaleidosc...
org . junit . Assert . assertFalse ( rt . contains ( n ) )
testDestroy ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataType . class ) ; final java . util . List < org . kie . workbench . common . dmn . client . editors . types . commo...
org . junit . Assert . assertEquals ( expectedDependentDataTypes , actualDependentDataTypes )
test_withMinute_noChange ( ) { java . time . LocalDateTime t = TEST_2007_07_15_12_30_40_987654321 . withMinute ( 30 ) ; "<AssertPlaceHolder>" ; } withMinute ( int ) { return with ( dateTime . withMinute ( minute ) , offset ) ; }
org . junit . Assert . assertSame ( t , TEST_2007_07_15_12_30_40_987654321 )
testDebugAdductFormula_IMolecularFormula ( ) { org . openscience . cdk . interfaces . IAdductFormula mfS = new org . openscience . cdk . debug . DebugAdductFormula ( getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IMolecularFormula . class ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . c...
org . junit . Assert . assertEquals ( 1 , mfS . size ( ) )
testVersionAccessor ( ) { int version = 10 ; instance . setVersion ( version ) ; "<AssertPlaceHolder>" ; } getVersion ( ) { return version ; }
org . junit . Assert . assertEquals ( version , instance . getVersion ( ) )
testAssertionGroupsRequestWithExternalArtifact_Negative ( ) { System . out . println ( "\n***Starting<sp>testAssertionGroupsRequestWithExternalArtifact_Negative" ) ; org . ebayopensource . turmeric . services . assertionsservice . junit . ApplyAssertionGroupsRequest request = new org . ebayopensource . turmeric . servi...
org . junit . Assert . assertEquals ( org . ebayopensource . turmeric . services . assertionsservice . junit . PASS , result )
filter_files_by_extension ( ) { java . io . File dir = new java . io . File ( sourceFileURI ) ; java . io . FileFilter fileFilter = new org . apache . commons . io . filefilter . WildcardFileFilter ( "*.txt" ) ; java . io . File [ ] files = dir . listFiles ( fileFilter ) ; com . levelup . java . io . FilterFilesByExten...
org . junit . Assert . assertTrue ( ( ( files . length ) >= 4 ) )
test_hasItemThatMatches__should_return_a_negative_match_result ( ) { rabbitmq . test . RabbitAssert . MatchResult shouldNotMatchAny = rabbitmq . test . RabbitAssert . hasItemThatMatches ( java . util . Arrays . asList ( e1topic , e2direct ) , new rabbitmq . test . ExchangeMatcher [ ] { isDirect , nameE1topic } ) ; "<As...
org . junit . Assert . assertFalse ( shouldNotMatchAny . isMatch ( ) )
testCompilationUnitDeclaredTypes ( ) { java . io . File resource = new java . io . File ( "./src/test/java/spoon/test/model/Foo.java" ) ; final spoon . Launcher launcher = new spoon . Launcher ( ) ; launcher . addInputResource ( resource . getPath ( ) ) ; launcher . buildModel ( ) ; spoon . reflect . cu . CompilationUn...
org . junit . Assert . assertEquals ( 3 , cu . getDeclaredTypes ( ) . size ( ) )
shouldNotifyTransactionListenersOnRollbackSuccess ( ) { final java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; g . tx ( ) . addTransactionListener ( ( s ) -> { if ( s == Transaction . Status . ROLLBACK ) count . incrementAndGet ( ) ; } ) ; g . tx ( ...
org . junit . Assert . assertEquals ( 1 , count . get ( ) )
testMoveBlackSheep ( ) { it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . move . MoveBlackSheep mbs = new it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . move . MoveBlackSheep ( null , null ) ; mbs . setID ( ) ; "<AssertPlaceHolder>" ; } setID (...
org . junit . Assert . assertNotNull ( mbs )
testCleaning ( ) { final net . meisen . dissertation . impl . cache . FileBitmapIdCacheConfig fcc = new net . meisen . dissertation . impl . cache . FileBitmapIdCacheConfig ( ) ; fcc . setCacheCleaningFactor ( 0.5 ) ; fcc . setCacheSize ( 10 ) ; fcc . setLocation ( fc . getLocation ( ) ) ; fc . setConfig ( fcc ) ; fc ....
org . junit . Assert . assertTrue ( ( ( fc . getCacheSize ( ) ) <= 10 ) )
contains_any_returns_true_when_any_expression_value_in_array ( ) { com . redhat . lightblue . query . QueryExpression expr = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'array':'field6.nf5',<sp>'contains':'$any',<sp>'values':[1,2,3,4,5]}" ) ; com . redhat . lightblue . eval . QueryEv...
org . junit . Assert . assertTrue ( context . getResult ( ) )
testSettersEnGetters ( ) { final nl . moderniseringgba . isc . esb . message . brp . impl . SynchronisatieSignaalBericht synchronisatieSignaalBericht = new nl . moderniseringgba . isc . esb . message . brp . impl . SynchronisatieSignaalBericht ( ) ; final java . lang . String ANUMMER = "123456" ; synchronisatieSignaalB...
org . junit . Assert . assertEquals ( ANUMMER , synchronisatieSignaalBericht . getANummer ( ) )
testSetResultWithPersonEntryControllerBehaviour ( ) { nl . surfnet . coin . api . client . domain . AbstractEntry entry = new nl . surfnet . coin . api . client . domain . PersonEntry ( new nl . surfnet . coin . api . client . domain . Person ( ) , 1 , 1 , "name" , 5 ) ; controller . setResultOptions ( entry , 3 , 2 , ...
org . junit . Assert . assertEquals ( 1 , entry . getTotalResults ( ) )
testToRange ( ) { org . davidmoten . hilbert . Box b = org . davidmoten . hilbert . Box . a ( 0 , 0 ) . b ( 15 , 15 ) ; org . davidmoten . hilbert . SmallHilbertCurve h = org . davidmoten . hilbert . HilbertCurve . small ( ) . bits ( 4 ) . dimensions ( 2 ) ; org . davidmoten . hilbert . Range r = h . toRange ( b , BoxM...
org . junit . Assert . assertEquals ( org . davidmoten . hilbert . Range . create ( 0 , 255 ) , r )
sendAndReceive_stringMessageWithProvidedDestination_shouldUseTheProvidedDestination ( ) { java . lang . String messageContent = "testMessage" ; this . defaultQueueMessagingTemplate . convertAndSend ( org . springframework . cloud . aws . messaging . QueueMessagingTemplateIntegrationTest . STRING_QUEUE_NAME , messageCon...
org . junit . Assert . assertEquals ( messageContent , receivedMessage )
testNotDuplicatedDisplayedMnemonic ( ) { es . gob . afirma . ui . wizardmultifirmamasiva . PanelFormatosAccessibilityTest . logger . info ( "testNotDuplicatedDisplayedMnemonic" ) ; try { final es . gob . afirma . ui . wizardmultifirmamasiva . PanelFormatos panelFormatos = new es . gob . afirma . ui . wizardmultifirmama...
org . junit . Assert . assertTrue ( ( ( keyCodesSet . size ( ) ) == ( keyCodes . size ( ) ) ) )
testAddObject ( ) { headers . addObject ( "header" , ( ( java . lang . Object ) ( ( java . lang . Integer ) ( 1 ) ) ) ) ; "<AssertPlaceHolder>" ; } delegate ( ) { return delegate ; }
org . junit . Assert . assertEquals ( "1" , headers . delegate ( ) . get ( "header" ) )
testActionGoodSiteName ( ) { org . apache . shiro . authz . SimpleAuthorizationInfo blankUserInfo = new org . apache . shiro . authz . SimpleAuthorizationInfo ( new java . util . HashSet < java . lang . String > ( ) ) ; blankUserInfo . setObjectPermissions ( new java . util . HashSet < org . apache . shiro . authz . Pe...
org . junit . Assert . assertThat ( ddf . security . pdp . realm . xacml . XacmlPdpTest . testRealm . isPermitted ( request ) , org . hamcrest . Matchers . equalTo ( true ) )
test_checkNotEmptyAndValidMinMaxDate_maxdate_noerror ( ) { org . restfulwhois . rdap . common . validation . ValidationResult validationResult = new org . restfulwhois . rdap . common . validation . ValidationResult ( ) ; org . restfulwhois . rdap . common . util . UpdateValidateUtil . checkNotEmptyAndValidMinMaxDate (...
org . junit . Assert . assertFalse ( validationResult . hasError ( ) )
getAllConceptStopWords_shouldReturnAllConceptStopWords ( ) { java . util . List < org . openmrs . ConceptStopWord > conceptStopWords = conceptService . getAllConceptStopWords ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) . collect ( java ...
org . junit . Assert . assertEquals ( 4 , conceptStopWords . size ( ) )
shouldCountMeanWidth ( ) { codeAnalyzer . measureLine ( aLineOf ( 30 ) ) ; codeAnalyzer . measureLine ( aLineOf ( 10 ) ) ; "<AssertPlaceHolder>" ; } getMeanLineWidth ( ) { return ( totalChars ) / ( lineCount ) ; }
org . junit . Assert . assertEquals ( 20 , codeAnalyzer . getMeanLineWidth ( ) )
testAddPropertyChangeListenerSomethingNull ( ) { propertiesManager . addPropertyChangeListener ( "something" , null ) ; "<AssertPlaceHolder>" ; } getPropertyChangeListeners ( ) { return propertyChangeListeners ; }
org . junit . Assert . assertTrue ( propertiesManager . getPropertyChangeListeners ( ) . isEmpty ( ) )
testToBooleanFromFalseString ( ) { java . lang . Object result = com . orientechnologies . orient . core . metadata . schema . OType . convert ( "false" , com . orientechnologies . orient . core . metadata . schema . Boolean . class ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . Object , java . lang . Class ) { ...
org . junit . Assert . assertEquals ( result , false )
testGetUsePlainTextControl ( ) { classUnderTest . setUsePlainTextControl ( true ) ; "<AssertPlaceHolder>" ; } getUsePlainTextControl ( ) { return _usePlainTextControl ; }
org . junit . Assert . assertEquals ( true , classUnderTest . getUsePlainTextControl ( ) )
applyFakeForJREClass ( ) { mockit . MoreFakingTest . FakeThread fakeThread = new mockit . MoreFakingTest . FakeThread ( ) ; java . lang . Thread . currentThread ( ) . interrupt ( ) ; "<AssertPlaceHolder>" ; } interrupt ( ) { interrupted = true ; }
org . junit . Assert . assertTrue ( fakeThread . interrupted )
getNumberOfFeatures_WFSResponseWithTwoFeatures_returns2 ( ) { org . geotools . data . wfs . internal . parsers . XmlComplexFeatureParser mineParser = getParser ( "wfs_response_two_mines.xml" ) ; int numberOfFeatures = mineParser . getNumberOfFeatures ( ) ; "<AssertPlaceHolder>" ; } getNumberOfFeatures ( ) { return numb...
org . junit . Assert . assertEquals ( 2 , numberOfFeatures )
testShiftRangeNullInt ( ) { final int [ ] array = null ; org . fintx . util . Arrays . shift ( array , 1 , 1 , 1 ) ; "<AssertPlaceHolder>" ; } shift ( T , int , int , int ) { if ( array == null ) { return ; } if ( ! ( array . getClass ( ) . isArray ( ) ) ) { throw new java . lang . IllegalArgumentException ( "Argument<...
org . junit . Assert . assertNull ( array )
testGetClientExists ( ) { _client = org . dcache . nfs . v4 . NfsTestUtils . createClient ( _stateHandler ) ; "<AssertPlaceHolder>" ; } getClient ( org . dcache . nfs . v4 . xdr . sessionid4 ) { checkState ( _running , "NFS<sp>state<sp>handler<sp>not<sp>running" ) ; org . dcache . nfs . v4 . xdr . clientid4 clientId = ...
org . junit . Assert . assertEquals ( _client , _stateHandler . getClient ( _client . getId ( ) ) )
testNakedRuleStar ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "parser<sp>grammar<sp>P;\n" + ( "a<sp>:<sp>b*;\n" + "b<sp>:<sp>B;" ) ) ) ; java . lang . String expecting = "(rule<sp>a<sp>ARG<sp>RET<sp>scope<sp>(BLOCK<sp>(ALT<sp>(*<sp>(BLOCK<sp>(ALT<sp>b<sp><end-of-alt>)<sp><end-of-block>))...
org . junit . Assert . assertEquals ( expecting , found )
isSameContainerReturnsTrueWhenReferecencedElementIsParamater ( ) { final org . bonitasoft . studio . model . parameter . Parameter parameter = ParameterFactory . eINSTANCE . createParameter ( ) ; parameter . setName ( "myParameter" ) ; final org . bonitasoft . studio . model . process . Pool pool = ProcessFactory . eIN...
org . junit . Assert . assertTrue ( org . bonitasoft . studio . common . emf . tools . ModelHelper . isSameContainer ( refParameter , pool ) )
testConvertsStringArray ( ) { org . eclipse . rap . json . JsonArray jsonArray = com . eclipsesource . tabris . internal . JsonUtil . createJsonArray ( "foo" , "bar" ) ; "<AssertPlaceHolder>" ; } add ( com . eclipsesource . tabris . internal . ui . rendering . PageRenderer ) { renderers . add ( renderer ) ; }
org . junit . Assert . assertEquals ( new org . eclipse . rap . json . JsonArray ( ) . add ( "foo" ) . add ( "bar" ) , jsonArray )
testPLSDegenerate ( ) { mikera . matrixx . AMatrix X = mikera . matrixx . Matrix . create ( new double [ ] [ ] { new double [ ] { 1 } , new double [ ] { 1 } } ) ; mikera . matrixx . AMatrix Y = mikera . matrixx . Matrix . create ( new double [ ] [ ] { new double [ ] { 1 , 1 } , new double [ ] { 7 , 10.0 } } ) ; mikera ...
org . junit . Assert . assertTrue ( coeff . epsilonEquals ( mikera . matrixx . Matrix . create ( new double [ ] [ ] { new double [ ] { 0 , 0 } } ) ) )
testInvokeWithVarArgsAB ( ) { javax . el . MethodExpression me1 = factory . createMethodExpression ( context , "${beanC.sayHello(beanA,beanB,beanB)}" , null , null ) ; java . lang . Exception e = null ; try { me1 . invoke ( context , null ) ; } catch ( java . lang . Exception e1 ) { e = e1 ; } "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( e )
readOnlyTest ( ) { org . easydevelop . business . domain . UserOrder order = new org . easydevelop . business . domain . UserOrder ( ) ; order . setUserId ( 6 ) ; java . lang . Integer shardingDatasourceSeq = agTest . readOnlyTest ( ) ; "<AssertPlaceHolder>" ; } readOnlyTest ( ) { org . easydevelop . business . domain ...
org . junit . Assert . assertTrue ( ( ( shardingDatasourceSeq != null ) && ( shardingDatasourceSeq . equals ( 0 ) ) ) )
testWritingDecimalVsJava ( ) { net . openhft . chronicle . bytes . Bytes bytes = net . openhft . chronicle . bytes . Bytes . elasticHeapByteBuffer ( 32 ) ; bytes . clear ( ) ; double d = 0.04595828484241039 ; bytes . append ( d ) ; java . lang . String s = java . lang . Double . toString ( d ) ; if ( ( s . length ( ) )...
org . junit . Assert . assertEquals ( d , java . lang . Double . parseDouble ( s ) , 0.0 )
testObjectSerialization ( ) { com . owlike . genson . Genson genson = createTimestampGenson ( java . time . LocalDate . class , TimestampFormat . OBJECT ) ; java . time . LocalDate dt = java . time . LocalDate . of ( 2011 , 1 , 31 ) ; java . lang . String expectedJson = "{\"year\":2011,\"month\":1,\"day\":31}" ; "<Asse...
org . junit . Assert . assertEquals ( expectedJson , genson . serialize ( dt ) )
setValidSASTokenCorrectlyDespiteFurtherReorganizedSignature ( ) { java . lang . String sastoken = ( "SharedAccessSignature<sp>se=" + ( Long . MAX_VALUE ) ) + "&sig=sigValue&sr=srValue" ; final com . microsoft . azure . sdk . iot . device . IotHubConnectionString iotHubConnectionString = mockit . Deencapsulation . newIn...
org . junit . Assert . assertTrue ( tokenStr . equals ( sastoken ) )
testCapitalizeWithNullInput ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( false ) . build ( ) ; com . mitchellbosecke . pebble . template . Pebbl...
org . junit . Assert . assertEquals ( "" , writer . toString ( ) )
testInputStreamProxyDetached ( ) { org . apache . avro . io . Decoder d = newDecoder ( org . apache . avro . io . TestBinaryDecoder . data ) ; if ( d instanceof org . apache . avro . io . BinaryDecoder ) { org . apache . avro . io . BinaryDecoder bd = ( ( org . apache . avro . io . BinaryDecoder ) ( d ) ) ; org . apach...
org . junit . Assert . assertFalse ( ( ( bad . read ( ) ) == ( check2 . read ( ) ) ) )
addAppleBundleResourcesIsDelegatedToUnderlyingBundle ( ) { com . facebook . buck . apple . AppleBundleResources . Builder genruleBuilder = com . facebook . buck . apple . AppleBundleResources . builder ( ) ; new com . facebook . buck . features . js . JsBundleGenruleDescription ( new com . facebook . buck . core . tool...
org . junit . Assert . assertEquals ( expected , genruleBuilder . build ( ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . changeset . model . ChangesetCollection . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com ....
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
test_mapValueTypeTypes_invalidNoGenerics ( ) { org . joda . beans . MetaProperty < java . util . Map < java . lang . String , org . joda . beans . sample . Address > > test = org . joda . beans . sample . Person . meta ( ) . otherAddressMap ( ) ; java . util . List < java . lang . Class < ? > > expected = java . util ....
org . junit . Assert . assertEquals ( org . joda . beans . JodaBeanUtils . mapValueTypeTypes ( test , org . joda . beans . sample . Person . class ) , expected )
getInputPort ( ) { "<AssertPlaceHolder>" ; } getInputPort ( ) { org . junit . Assert . assertEquals ( org . openkilda . messaging . command . Constants . inputPort , org . openkilda . messaging . command . flow . BaseInstallFlowTest . flow . getInputPort ( ) . intValue ( ) ) ; }
org . junit . Assert . assertEquals ( org . openkilda . messaging . command . Constants . inputPort , org . openkilda . messaging . command . flow . BaseInstallFlowTest . flow . getInputPort ( ) . intValue ( ) )
testShouldReturnMatchIfOneFieldMatchesAndOnlyOneDriverIsRegistered ( ) { org . openqa . selenium . Capabilities template = new org . openqa . selenium . remote . DesiredCapabilities ( "foo" , "1.0" , org . openqa . selenium . Platform . getCurrent ( ) ) ; org . openqa . selenium . remote . server . DriverProvider provi...
org . junit . Assert . assertEquals ( provider , factory . getProviderMatching ( example ) )
versionComparatorTes6 ( ) { int compare = VersionComparator . INSTANCE . compare ( "V0.0.20170102" , "V0.0.20170101" ) ; "<AssertPlaceHolder>" ; } compare ( java . lang . String , java . lang . String ) { if ( version1 == version2 ) { return 0 ; } if ( ( version1 == null ) && ( version2 == null ) ) { return 0 ; } else ...
org . junit . Assert . assertTrue ( ( compare > 0 ) )
shouldCreateImage ( ) { final javax . ws . rs . core . Response response = postResponse ( target ( "images" ) . path ( "create" ) . queryParam ( "fromImage" , "alpine:3.2" ) . queryParam ( "tag" , "3.2" ) ) ; "<AssertPlaceHolder>" ; response . close ( ) ; }
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testGetNetworkName ( ) { np . setName ( "bla" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return com . net2plan . documentation . Taglet_InputParameters . NAME ; }
org . junit . Assert . assertEquals ( np . getName ( ) , "bla" )
getFileStores_shouldReturnOneFileStore ( ) { java . util . Collection < java . nio . file . FileStore > stores = new java . util . ArrayList ( ) ; for ( java . nio . file . FileStore root : gfs . getFileStores ( ) ) stores . add ( root ) ; "<AssertPlaceHolder>" ; } size ( ) { return file . getSize ( ) ; }
org . junit . Assert . assertEquals ( 1 , stores . size ( ) )
test2 ( ) { new org . n3r . eql . Eql ( "mysql" ) . options ( "NoWhere" ) . params ( "<sp>" ) . execute ( "DELETE<sp>FROM<sp>EQL_NUMBER" , "INSERT<sp>INTO<sp>EQL_NUMBER<sp>VALUES(#:Number#)" ) ; java . lang . Object id = new org . n3r . eql . Eql ( "mysql" ) . limit ( 1 ) . execute ( "SELECT<sp>ID<sp>FROM<sp>EQL_NUMBER...
org . junit . Assert . assertNull ( id )
testConvert ( ) { java . lang . Long addressTypeId = 1L ; org . lnu . is . domain . address . type . AddressType addressType = new org . lnu . is . domain . address . type . AddressType ( ) ; addressType . setId ( addressTypeId ) ; java . lang . Long adminUnitId = 2L ; org . lnu . is . domain . admin . unit . AdminUnit...
org . junit . Assert . assertEquals ( expected , actual )
shouldNotRemoveBatchWhenAllGroupEmpty ( ) { org . openkilda . wfm . topology . flow . transactions . FlowCommandRegistry registry = new org . openkilda . wfm . topology . flow . transactions . FlowCommandRegistry ( ) ; java . util . UUID batchId = registerBatchWith2Groups ( registry ) ; registry . pollNextGroup ( org ....
org . junit . Assert . assertTrue ( registry . isBatchEmpty ( batchId ) )
testGetColumnIdsFromString ( ) { java . util . Set < java . lang . Long > results = org . sagebionetworks . repo . model . dbo . dao . table . TableExceptionTranslatorImpl . getColumnIdsFromString ( "_C111_,_C222_,C123" ) ; java . util . Set < java . lang . Long > expected = com . google . common . collect . Sets . new...
org . junit . Assert . assertEquals ( expected , results )
hasEnoughNodes_POINT_true ( ) { touchview . setInterpretationType ( InterpretationType . POINT ) ; polygon . add ( point1 ) ; "<AssertPlaceHolder>" ; } hasEnoughNodes ( ) { return ( interpreter . minNodes ( ) ) <= ( polygon . size ( ) ) ; }
org . junit . Assert . assertThat ( touchview . hasEnoughNodes ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testExtractsEnableForwardHeaders ( ) { com . hp . hpl . jena . rdf . model . Model spec = com . epimorphics . jsonrdf . utils . ModelIOUtils . modelFromTurtle ( new java . lang . StringBuffer ( ) . append ( ":s<sp>a<sp>api:API" ) . append ( ";<sp>api:sparqlEndpoint<sp><http://example.com/none>" ) . append ( ";<sp>elda:...
org . junit . Assert . assertEquals ( false , a . getEnableForwardHeaders ( ) )
testEstablishConenction ( ) { java . util . concurrent . Future < java . net . Socket > sourceResult = this . executor . submit ( new java . util . concurrent . Callable < java . net . Socket > ( ) { @ de . fhkn . in . uce . connectivitymanager . manager . Override public java . net . Socket call ( ) throws de . fhkn ....
org . junit . Assert . assertTrue ( result )
assertClearBatch ( ) { if ( ( ! ( getDatabaseTypeEnvironment ( ) . isEnabled ( ) ) ) || ( "masterslave" . equals ( getShardingRuleType ( ) ) ) ) { return ; } try ( java . sql . Connection connection = getDataSource ( ) . getConnection ( ) ) { try ( java . sql . PreparedStatement preparedStatement = connection . prepare...
org . junit . Assert . assertThat ( preparedStatement . executeBatch ( ) . length , org . hamcrest . CoreMatchers . is ( 0 ) )
testMazeSolution ( ) { int ret_val = com . examples . with . different . packagename . solver . MazeClient . walk ( 's' , 's' , 's' , 's' , 'd' , 'd' , 'd' , 'd' , 'w' , 'w' , 'a' , 'a' , 'w' , 'w' , 'd' , 'd' , 'd' , 'd' , 's' , 's' , 's' , 's' , 'd' , 'd' , 'w' , 'w' , 'w' , 'w' , ( ( char ) ( 0 ) ) , ( ( char ) ( 0 ...
org . junit . Assert . assertEquals ( 1 , ret_val )
testPermissiveFiltering ( ) { org . picketlink . config . SecurityConfigurationBuilder configurationBuilder = new org . picketlink . config . SecurityConfigurationBuilder ( ) ; org . picketlink . config . HttpSecurityBuilder builder = configurationBuilder . http ( ) ; java . lang . String [ ] expectedMethods = new java...
org . junit . Assert . assertEquals ( 1 , configuration . getPaths ( ) . size ( ) )
testGetContextKeys ( ) { java . util . List < com . google . devtools . depan . nodes . filters . sequence . ComposeFilterTest . TestKey > keys = java . util . Collections . singletonList ( com . google . devtools . depan . nodes . filters . sequence . ComposeFilterTest . TestKey . TEST ) ; com . google . devtools . de...
org . junit . Assert . assertEquals ( keys , test . getContextKeys ( ) )
should_mark_date_in_sequence_as_locked ( ) { net . rrm . ehour . ui . timesheet . dto . Timesheet timesheet = new net . rrm . ehour . ui . timesheet . dto . Timesheet ( ) ; java . util . Date date = new java . util . Date ( ) ; timesheet . setLockedDays ( java . util . Arrays . asList ( date ) ) ; timesheet . setDateSe...
org . junit . Assert . assertTrue ( timesheet . isLocked ( 0 ) )
addToModel_NoEntry ( ) { converter . addToModel ( settings , serverSettings ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return false ; }
org . junit . Assert . assertTrue ( settings . isEmpty ( ) )
ibansWithSameDataShouldHaveSameHashCode ( ) { org . iban4j . Iban iban1 = new org . iban4j . Iban . Builder ( ) . countryCode ( CountryCode . AT ) . bankCode ( "1904" ) . accountNumber ( "102345732012" ) . build ( ) ; org . iban4j . Iban iban2 = new org . iban4j . Iban . Builder ( ) . countryCode ( CountryCode . AT ) ....
org . junit . Assert . assertThat ( iban1 . hashCode ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( iban2 . hashCode ( ) ) ) )
testMultipleResets ( ) { final java . util . concurrent . atomic . AtomicInteger cnt = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; final int num = 1000 ; final int events = 10 ; final org . apache . reef . wake . impl . BlockingSignalEventHandler < java . lang . Integer > h = new org . apache . reef ....
org . junit . Assert . assertEquals ( events , cnt . get ( ) )
trackable_input_post_close_06 ( ) { java . io . InputStream input = this . generateData ( 0 ) ; @ org . apache . jena . hadoop . rdf . io . input . util . SuppressWarnings ( "resource" ) org . apache . jena . hadoop . rdf . io . input . util . TrackableInputStream trackable = this . getInstance ( input ) ; trackable . ...
org . junit . Assert . assertEquals ( 0 , trackable . skip ( 0 ) )
testProjectInfoMissing ( ) { io . github . msdk . spectra . peakinvestigator . providers . PeakInvestigatorProjectProvider provider = factory . createProjectProvider ( ) ; "<AssertPlaceHolder>" ; } createProjectProvider ( ) { return new io . github . msdk . spectra . peakinvestigator . providers . PeakInvestigatorProje...
org . junit . Assert . assertThat ( provider . show ( ) , org . hamcrest . Matchers . equalTo ( PeakInvestigatorProvider . Status . CANCEL ) )
condition13Test ( ) { model . Record record = new model . Record ( null ) ; record . put ( "hoi" , new model . datafield . DataFieldInt ( 10 ) ) ; java . lang . String expression = "COL(hoi)<sp>+<sp>14<sp>=<sp>24" ; analyze . condition . Condition condition = new analyze . condition . Condition ( expression ) ; "<Asser...
org . junit . Assert . assertEquals ( true , condition . evaluateWithRecord ( record ) )
shouldRetainGivenFilterAndMapping ( ) { registry . add ( filter1 , "/**" ) ; "<AssertPlaceHolder>" ; } has ( java . lang . Class , java . lang . String ) { java . lang . String regex = com . threewks . thundr . route . controller . FilterRegistryImpl . convertPathStringToRegex ( path ) ; for ( com . atomicleopard . exp...
org . junit . Assert . assertThat ( registry . has ( filter1 , "/**" ) , is ( true ) )
shouldAddTermsFromRedisOnZrangebyscoreCommandWithCustomRange ( ) { when ( localParamsMock . get ( "command" ) ) . thenReturn ( "zrangebyscore" ) ; when ( localParamsMock . get ( "key" ) ) . thenReturn ( "simpleKey" ) ; when ( localParamsMock . get ( "min" ) ) . thenReturn ( "1" ) ; when ( localParamsMock . get ( "max" ...
org . junit . Assert . assertEquals ( 2 , terms . size ( ) )
testPreconditionedSolution ( ) { final int n = 8 ; final int maxIterations = 100 ; final org . hipparchus . linear . RealLinearOperator a = new org . hipparchus . linear . HilbertMatrix ( n ) ; final org . hipparchus . linear . InverseHilbertMatrix ainv = new org . hipparchus . linear . InverseHilbertMatrix ( n ) ; fin...
org . junit . Assert . assertEquals ( msg , expected , actual , delta )
testSharedConsumer ( ) { conn = cf . createConnection ( ) ; conn . start ( ) ; javax . jms . Session session = conn . createSession ( false , Session . AUTO_ACKNOWLEDGE ) ; topic = org . apache . activemq . artemis . api . jms . ActiveMQJMSClient . createTopic ( org . apache . activemq . artemis . tests . integration ....
org . junit . Assert . assertNotNull ( txt )
testSetAtoms_arrayIAtom ( ) { org . openscience . cdk . interfaces . IAtomContainer ac = ( ( org . openscience . cdk . interfaces . IAtomContainer ) ( newChemObject ( ) ) ) ; org . openscience . cdk . interfaces . IAtom [ ] atoms = new org . openscience . cdk . interfaces . IAtom [ 4 ] ; atoms [ 0 ] = ac . getBuilder (...
org . junit . Assert . assertEquals ( 4 , ac . getAtomCount ( ) )
testOpenIdConnectWithRelativeURL ( ) { org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type type = org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type . OPENIDCONNECT ; java . lang . String url = "../../myserver/security/relative-url" ; com . ibm . ws . micro...
org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) )
test_tracking_settings_click_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
whenUsingApache_thenCopyFile ( ) { final java . io . File src = new java . io . File ( ( ( ( ( ( ( ( ( ( ( "src" + ( java . io . File . separator ) ) + "test" ) + ( java . io . File . separator ) ) + "resources" ) + ( java . io . File . separator ) ) + "copyTest" ) + ( java . io . File . separator ) ) + "src" ) + ( jav...
org . junit . Assert . assertTrue ( dest . exists ( ) )
isEnabledReturnsTrueForEmptySetting ( ) { this . parameters . put ( "enabled" , "" ) ; org . phenotips . configuration . RecordSection s = new org . phenotips . configuration . spi . UIXRecordSection ( this . uiExtension , this . uixManager , this . orderFilter ) ; "<AssertPlaceHolder>" ; } isEnabled ( ) { return this ...
org . junit . Assert . assertTrue ( s . isEnabled ( ) )
iterator_throws_non_empty_collection ( ) { com . gs . collections . api . BooleanIterable iterable = this . newWith ( true , true , true ) ; com . gs . collections . api . iterator . BooleanIterator iterator = iterable . booleanIterator ( ) ; while ( iterator . hasNext ( ) ) { "<AssertPlaceHolder>" ; } iterator . next ...
org . junit . Assert . assertTrue ( iterator . next ( ) )
sparql_graph_delta_03 ( ) { org . apache . jena . rdf . model . Model a = org . apache . jena . rdf . model . ModelFactory . createDefaultModel ( ) ; org . apache . jena . rdf . model . Model b = org . apache . jena . rdf . model . ModelFactory . createDefaultModel ( ) ; a . read ( new java . io . StringReader ( org . ...
org . junit . Assert . assertEquals ( 1 , b . size ( ) )
shouldRaiseNoMethodParameterConstraintViolation ( ) { org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 cd = new org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 ( "Kind<sp>of<sp>Blue" , 12.5F ) ; javax . validation . executable . ExecutableValidator methodValidator = org . agoncal . book . javaee7 . cha...
org . junit . Assert . assertEquals ( 0 , violations . size ( ) )
fileCreatedUsingProjectFileSystemIsVisibleToSkylark ( ) { java . nio . file . Path file = projectFilesystem . getPathForRelativePath ( "file" ) ; projectFilesystem . createNewFile ( file ) ; "<AssertPlaceHolder>" ; } toSkylarkPath ( java . lang . String ) { return skylarkFilesystem . getPath ( projectFilesystem . resol...
org . junit . Assert . assertTrue ( toSkylarkPath ( file ) . exists ( ) )
givenBaeldungReader_whenWrite_thenWriterCalled ( ) { mockArticleWriter = mock ( com . baeldung . easymock . IArticleWriter . class ) ; baeldungReader = new com . baeldung . easymock . BaeldungReader ( mockArticleWriter ) ; expect ( mockArticleWriter . write ( "title" , "content" ) ) . andReturn ( null ) ; replay ( mock...
org . junit . Assert . assertEquals ( null , articleId )
testShowSelection ( ) { grid = new org . eclipse . nebula . widgets . grid . Grid ( shell , ( ( ( org . eclipse . swt . SWT . MULTI ) | ( org . eclipse . swt . SWT . H_SCROLL ) ) | ( org . eclipse . swt . SWT . V_SCROLL ) ) ) ; grid . setSize ( 200 , 200 ) ; org . eclipse . nebula . widgets . grid . GridTestUtil . crea...
org . junit . Assert . assertEquals ( 4 , grid . getTopIndex ( ) )
testTrainC_ClassificationDataSet ( ) { System . out . println ( "trainC" ) ; for ( boolean sampling : new boolean [ ] { true , false } ) { jsat . classifiers . linear . kernelized . BOGD instance = new jsat . classifiers . linear . kernelized . BOGD ( new jsat . distributions . kernels . RBFKernel ( 0.5 ) , 50 , 0.5 , ...
org . junit . Assert . assertEquals ( 0 , cme . getErrorRate ( ) , 0.0 )